This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"errors" | |
"fmt" | |
"os" | |
"strconv" | |
"strings" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'parseconfig' | |
config = ParseConfig.new('.git/config') | |
url = config["remote \"origin\""]["url"] | |
if url =~ /^git@/ | |
url = "https://#{url.sub!(/git@/, '').sub!(':', '/').sub!('.git', '')}" | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am rubyist on github. | |
* I am rubyist (https://keybase.io/rubyist) on keybase. | |
* I have a public key whose fingerprint is 1B23 8186 02E1 D85F 61B7 AC94 B351 D529 7399 1682 | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <util/delay.h> | |
#include "light_ws2812.h" | |
#include <string.h> | |
#define LEDSPERSEG 1 | |
#define LEDSEGMENTS 7 | |
#define DIGITS 4 | |
#define LEDSPERDIGIT LEDSPERSEG * LEDSEGMENTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function upInThis(array, value) { | |
for (var i = 0; i < array.length; i++) { | |
if (array[i] == value) return true; | |
} | |
return false; | |
} | |
function sayItProud(msg) { | |
message = this.chat.transcript.insertPendingMessage(msg); | |
new Campfire.OutgoingMessage(this.chat, message, msg, '').send(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Adafruit_NeoPixel.h> | |
#define PIN 8 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(24, PIN, NEO_GRB + NEO_KHZ800); | |
// LED strip, 3 LEDs per segment, standard 7 segment LED layout | |
unsigned long DigitBytes[] = { | |
0x0003FFFF, // 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int buzzerPin = 6; | |
// Trick these 4 out for accuracy | |
const int songLength = 17; | |
char notes[] = "efg dab bbbbbaagg"; | |
int beats[] = {1,2,5,3,2,4,2,5,2,2,2,2,3,3,3,3,2}; | |
int tempo = 90; | |
// Boom. Gold. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"strconv" | |
"sync" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(START) | |
@SCREEN | |
D=A | |
@cur | |
M=D // Sets CUR to SCREEN | |
(LOOP) | |
@KBD // read from keyboard, 0=nothing pressed | |
D=M |
NewerOlder