Skip to content

Instantly share code, notes, and snippets.

View saderuuu's full-sized avatar
🏠
Working from home

saderuuu saderuuu

🏠
Working from home
  • Portugal
View GitHub Profile
@saderuuu
saderuuu / resize.sh
Last active October 17, 2019 20:11
Redimensionador de imagens
#!/bin/bash
if [ -z "$1" ]
then
echo "Favor definir um arquivo de entrada"
exit
fi
if [ -z "$2" ]
then
echo "Favor definir um arquivo de saída"
import ddf.minim.*;
Minim minim;
AudioPlayer groove;
float c = 0;
int step = 1;
void setup()
{
install.packages("tidyverse")
install.packages("openxlsx")
install.packages("writexl")
install.packages("readxl")
install.packages("knitr")
install.packages("PNADcIBGE")
library(tidyverse)
library(openxlsx)
library(writexl)
@saderuuu
saderuuu / ac303.cpp
Created October 5, 2016 17:50 — forked from VitorDiToro/ac303.cpp
Rafael Oliveira Prado
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <cstdlib>
#define MAX_SIZE 1000
#define UNDEFINED -1
using namespace std;
@saderuuu
saderuuu / game.py
Created November 19, 2014 16:12
Introdução ao Pygame
import pygame
import random
from pygame.locals import *
pygame.init()
display = pygame.display.set_mode((640, 480))
fantasma = pygame.image.load("ghost1.png").convert()
font = pygame.font.Font(None, 50)
@saderuuu
saderuuu / rpncalc.cpp
Created June 26, 2012 03:19
Calculadora RPN
#include <iostream>
#include <string>
#include <stack>
#include <sstream>
using namespace std;
// A fazer:
// Suportar numeros com mais de 1 algarismo
// Conversão string->int