Skip to content

Instantly share code, notes, and snippets.

View dreid's full-sized avatar
💭
Archived

dreid dreid

💭
Archived
View GitHub Profile
@dreid
dreid / umloud_songs.txt
Created November 9, 2011 18:48
Sorted song list for umloud, extracted from HTML song chooser. This may not include songs which are already selected by ultimate bands.
(Damn) This Desert Air - Ghost I Own
2nd Thought - Just Hang On
3 Doors Down - Here Without You
3 Doors Down - It's Not My Time
3 Doors Down - Kryptonite
3 Doors Down - When I'm Gone
3 Doors Down - When You're Young
3 Inches of Blood - Battles and Brotherhood
30 Seconds to Mars - Attack
30 Seconds to Mars - Closer to the Edge
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
@dreid
dreid / esnextbin.md
Last active June 7, 2016 16:40
esnextbin sketch
@dreid
dreid / esnextbin.md
Last active May 25, 2016 18:43
esnextbin sketch
@dreid
dreid / esnextbin.md
Created May 17, 2016 15:57
esnextbin sketch
@dreid
dreid / esnextbin.md
Last active May 6, 2016 03:46
esnextbin sketch
@dreid
dreid / dialyzer.mk
Created August 11, 2011 06:45
A second pass at making using dialyzer a little easier. This time as a Makefile.
##
## dialyzer.mk: Useful make targets for working with erlang's
## dialyzer. Manages a per-OTP version PLT which is then copied
## to your project directory and adds your dependencies to the
## plt. By default the OTP plt is stored in ~/.dialyzer so that
## it is used by all dialyzer.mk using projects. This can be
## changed with the PLT_BASE variable.
##
## Recommended usage is to add `include dialyzer.mk` to your
## projects Makefile.
@dreid
dreid / dialysis
Created August 10, 2011 20:52
first pass at a shell script to make building dialysis plts easier to use.
#!/bin/sh
OTP_VERSION=$(erl -noinput \
-noshell \
-eval 'io:fwrite(erlang:system_info(otp_release)).' \
-s init stop)
PLT_DIR="$HOME/.dialyzer/${OTP_VERSION}"
CURRENT_APP=$(basename $(pwd));
@dreid
dreid / rt.py
Created December 1, 2013 16:38
from cffi import FFI
ffi = FFI()
ffi.cdef("""
typedef long int time_t;
struct timespec {
time_t tv_sec;
long tv_nsec;
#
# This gist is released under Creative Commons Public Domain Dedication License CC0 1.0
# http://creativecommons.org/publicdomain/zero/1.0/
#
from twisted.internet import defer, reactor
class TimeoutError(Exception):
"""Raised when time expires in timeout decorator"""