Skip to content

Instantly share code, notes, and snippets.

View tyler's full-sized avatar

Tyler McMullen tyler

View GitHub Profile
[tyler][00:07][~/Code/Hartford]⇒ cat micro.har
x = 43
y = 11
z = add(y, 3)
calculate = (Integer a, Integer b) -> Integer
add(sub(a, 38), b)
print_int(calculate(x, z))
[tyler][00:06][~/Code/Hartford]⇒ ruby scanner.rb micro.har > micro.tok
@tyler
tyler / trie.py
Created May 8, 2011 22:43
serializing trie
from struct import *
def _node_size(child_count):
return child_count * 5 + 6
class Node(object):
def __init__(self):
self.children = {}
self.terminal = False
COOL = ["superb",
"great",
"awesome",
"stellar",
"rad"]
STORY = ["tale",
"narrative",
"account",
"anecdote",
@tyler
tyler / gist:2897974
Created June 8, 2012 20:24
oh Chef...
15a16,17
> apt-get install wget
>
org 7C00h
jmp short Start
Hello: db "Hello World!"
Len:
Start:
xor ax, ax
mov es, ax
mov bp, Hello
@tyler
tyler / jlogtail.pl
Last active December 17, 2015 16:49
#!/usr/bin/perl
use strict;
use warnings;
use JLog::Writer;
use JLog::Reader;
use Compress::Zlib;
use Getopt::Long;
use Fcntl;

Keybase proof

I hereby claim:

  • I am tyler on github.
  • I am tbmcmullen (https://keybase.io/tbmcmullen) on keybase.
  • I have a public key whose fingerprint is 06BF 1D03 6A94 7503 E242 FA33 C499 2E86 8BA6 6750

To claim this, I am signing this object: