Skip to content

Instantly share code, notes, and snippets.

View tyler's full-sized avatar

Tyler McMullen tyler

View GitHub Profile

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:

@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;
org 7C00h
jmp short Start
Hello: db "Hello World!"
Len:
Start:
xor ax, ax
mov es, ax
mov bp, Hello
@tyler
tyler / gist:2897974
Created June 8, 2012 20:24
oh Chef...
15a16,17
> apt-get install wget
>
COOL = ["superb",
"great",
"awesome",
"stellar",
"rad"]
STORY = ["tale",
"narrative",
"account",
"anecdote",
@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
[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 / llvm-lisp.py
Created December 24, 2010 09:45
a basic lisp using llvm-py
from llvm import *
from llvm.core import *
m = Module.new('lisp')
main = m.add_function(Type.function(Type.int(), []), "main")
main_block = main.append_basic_block('entry')
b = Builder.new(main_block)
class ReferenceNotFound(Exception):
pass
--- src/http/modules/ngx_http_image_filter_module_old.c 2010-09-01 17:02:17.000000000 -0700
+++ src/http/modules/ngx_http_image_filter_module.c 2010-09-01 17:06:17.000000000 -0700
@@ -16,6 +16,7 @@
#define NGX_HTTP_IMAGE_SIZE 2
#define NGX_HTTP_IMAGE_RESIZE 3
#define NGX_HTTP_IMAGE_CROP 4
+#define NGX_HTTP_IMAGE_BOX 5
#define NGX_HTTP_IMAGE_START 0
class Scanner
class << self
attr_accessor :p, :marker, :line, :line_marker, :data, :output
end
%%{
machine scanner;
variable p self.p;
variable data self.data;