Skip to content

Instantly share code, notes, and snippets.

View wh0am1-dev's full-sized avatar
🙃

Carlos Aguilar wh0am1-dev

🙃
View GitHub Profile
@wh0am1-dev
wh0am1-dev / DNICalc.cpp
Last active December 22, 2015 16:09
Calculadora de Dígitos de Control de DNI Español
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <windows.h>
using namespace std;
int ctrlDigit(string, int&);
int main() {
@wh0am1-dev
wh0am1-dev / Mirror.pde
Created November 8, 2014 19:50
Webcam Mirror written in Processing
import processing.video.*;
int ancho = 640, alto = 480;
Capture webcam;
PShader shade;
PGraphics pg;
color col;
int tam = 20, step = 10;
boolean rawWebCam = false, elipse = true;
@wh0am1-dev
wh0am1-dev / Theremin.pde
Last active November 5, 2019 20:32
Theremin using a photoresist in Arduino !
import ddf.minim.*;
import ddf.minim.signals.*;
import processing.serial.*;
import cc.arduino.*;
final float A1 = 55.000;
final float AS1 = 58.270;
final float B1 = 61.735;
final float C1 = 65.406;
final float CS1 = 69.296;
@wh0am1-dev
wh0am1-dev / Tocadiscos.pde
Created January 23, 2015 14:41
Todadiscos
import ddf.minim.*;
import ddf.minim.ugens.*;
final float A1 = 55.000f;
final float AS1 = 58.270f;
final float B1 = 61.735f;
final float C1 = 65.406f;
final float CS1 = 69.296f;
final float D1 = 73.416f;
final float DS1 = 77.782f;
@wh0am1-dev
wh0am1-dev / tuenti-scraper.sh
Created February 4, 2016 15:44
Tuenti Scraper
#!/bin/bash
# usage:
# ./tuenti-scrape.sh <tuenti-email> <tuenti-password>
# install python and git
sudo apt-get install git python
# install dependencies
pip install python-tuenti
@wh0am1-dev
wh0am1-dev / Instructions.md
Created April 1, 2016 22:42 — forked from Bananattack/Instructions - Pico8 Sublime.md
PICO-8 syntax highlighting and theme in Sublime Text 2.

PICO-8 in Sublime Text 2

Syntax Highlighting

  1. Open up your Packages folder by going Preferences >> Browse Packages...
  2. Create a new folder named "Pico8"
  3. Save the Pico8.tmLanguage file there.

Color Scheme

@wh0am1-dev
wh0am1-dev / extract-music.py
Created June 19, 2016 00:38 — forked from eevee/extract-music.py
Python script to reconstitute music from a PICO-8 cartridge
# script to extract music from a pico-8
# requires exporting sounds from the pico-8 first!
# run as: python extract-music.py mygame.p8 sound%d.wav music%d.wav
# by eevee, do what you like with this code
from __future__ import print_function
import argparse
import struct
import wave
@wh0am1-dev
wh0am1-dev / Collatz.java
Created August 12, 2016 13:03
Collatz conjecture calculator
public class Collatz {
public static void main(String[] args) {
String input;
System.out.println("Press ctrl+c to quit\n");
while (true) {
try {
System.out.print("> ");
int n = Integer.parseInt(System.console().readLine());
int i = 0;
@wh0am1-dev
wh0am1-dev / OpenSimplexNoise.java
Created December 12, 2016 12:22 — forked from KdotJPG/OpenSimplex2S.java
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
/*
* OpenSimplex Noise in Java.
* by Kurt Spencer
*
* v1.1 (October 5, 2014)
* - Added 2D and 4D implementations.
* - Proper gradient sets for all dimensions, from a
* dimensionally-generalizable scheme with an actual
* rhyme and reason behind it.
* - Removed default permutation array in favor of
@wh0am1-dev
wh0am1-dev / perfectelementary.bash
Created May 9, 2017 16:10
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'