This file contains 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
// Standard ASCII 5x7 font, yanked from foostan's crkbd/lib/glcdfont.c | |
int[] progmem = { | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00, | |
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00, | |
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00, | |
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00, | |
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00, | |
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00, | |
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00, |
This file contains 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 goto() { | |
local p | |
local f | |
for p in `echo $GOPATH | tr ':' '\n'`; do | |
f=`find ${p}/src -maxdepth 3 -type d | grep ${1} | head -n 1` | |
if [ -n "$f" ]; then | |
cd $f | |
return | |
fi |
This file contains 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
class FastBeustSequence | |
class << self | |
def find_all(max) | |
@listener = [] | |
zero = Digit.new(nil, 0) | |
one = zero.next | |
start = Time.now | |
(1..10).each {|length| find(one, zero, length, 0, max, @listener)} | |