Skip to content

Instantly share code, notes, and snippets.

@acairncross
acairncross / index.html
Created September 29, 2015 19:20
Hough Transform
<!doctype html>
<html>
<head>
<meta charset=utf-8">
<style>
.on {
fill: black;
}
.off {
@acairncross
acairncross / gist:6260782
Created August 18, 2013 09:39
Arduino Musicbox v3
#include <Tone.h>
#include <avr/pgmspace.h>
#include "pitches.h"
PROGMEM const uint16_t melody[] = {
NOTE_D3, 0,
NOTE_G3, 0, NOTE_A3, 0,
NOTE_B3, 0, 0, 0,
NOTE_B3, 0, NOTE_D4, 0,
NOTE_A3, 0, 0, 0,
@acairncross
acairncross / gist:6252363
Created August 16, 2013 18:34
Arduino Musicbox v2
#include <Tone.h>
#include <avr/pgmspace.h>
#include "pitches.h"
PROGMEM const uint16_t melody[] = {
NOTE_D3, 0,
NOTE_G3, 0, NOTE_A3, 0,
NOTE_B3, 0, 0, 0,
NOTE_B3, 0, NOTE_D4, 0,
NOTE_A3, 0, 0, 0,
@acairncross
acairncross / gist:6251902
Created August 16, 2013 17:41
Arduino Musicbox v1
#include <Tone.h>
#include "pitches.h"
const int melody[] = {
NOTE_D3, 0,
NOTE_G3, 0, NOTE_A3, 0,
NOTE_B3, 0, 0, 0,
NOTE_B3, 0, NOTE_D4, 0,
NOTE_A3, 0, 0, 0,
NOTE_A3, 0, NOTE_B3, 0,
@acairncross
acairncross / gist:6249978
Created August 16, 2013 13:28
Arduino Musicbox v0
#include "pitches.h"
const int melody[] = {
NOTE_D3, 0,
NOTE_G3, 0, NOTE_A3, 0,
NOTE_B3, 0, 0, 0,
NOTE_B3, 0, NOTE_D4, 0,
NOTE_A3, 0, 0, 0,
NOTE_A3, 0, NOTE_B3, 0,
NOTE_G3, 0, 0, 0,