Skip to content

Instantly share code, notes, and snippets.

View ed-george's full-sized avatar
🌍
Working remotely...

Ed Holloway-George ed-george

🌍
Working remotely...
View GitHub Profile
@ed-george
ed-george / morse.ino
Created September 5, 2014 16:13
Arduino Morse with dual color LED
#define GREEN_LED 8
#define RED_LED 12
#define DOT '.'
#define DASH '-'
#define PIN_DELAY 500
char *ascii = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,?'!/()&:;=+-_\"$@";
char *code[] = {
".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--..","-----",".----","..---","...--","....-",".....","-....","--...","---..","----.",".-.-.-","--..--","..--..",".----.","-.-.--","-..-.","-.--.","-.--.-",".-...","---...","-.-.-.","-...-",".-.-.","-....-","..--.-",".-..-.","...-..-",".--.-."
@ed-george
ed-george / AsyncResponse.java
Created July 5, 2014 09:07
Async Callback Example
/**
* @author edgeorge
*
*/
public interface AsyncResponse {
void onProcessFinish(String result, int id);
}
@ed-george
ed-george / wii_connect.py
Created April 19, 2014 13:16
Initial test script with Bluetooth/GPIO
#!/usr/bin/python
#
# === pi-Racey ===
#
# wii_connect.py
# Connect a Nintendo Wii Remote via Bluetooth
# to drive a remote control car through GPIO
#
# Project URL :
# http://ed-george.github.io/piRacey/
@ed-george
ed-george / cleanup
Created March 31, 2014 19:05
Clean folder by moving all files not appended with underscore to Trash (Mac Only)
ls -1 | grep -v '^_' | xargs -I '{}' mv {} ~/.Trash