I hereby claim:
- I am techbelly on github.
- I am techbelly (https://keybase.io/techbelly) on keybase.
- I have a public key whose fingerprint is A172 A883 F6BB F523 7DF9 DC46 43EE 6295 94B6 9B31
To claim this, I am signing this object:
$ git clone https://github.com/rails/rails.git | |
Without tests | |
$ find rails -name \*.rb | grep -v test | xargs grep '^[[:space:]]\+def' | wc -l | |
5587 | |
Wit tests |
require 'hpricot' | |
require 'open-uri' | |
class OldBaileyParser | |
def initialize | |
scrape_reports | |
parse_reports | |
end | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'tinder' | |
require 'open3' | |
require 'eventmachine' | |
# CHANGE THESE TO FIT | |
config = { | |
# CAMPFIRE USER DETAILS |
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install python-software-properties | |
if [ ! -f /etc/apt/sources.list.d/chris-lea-node_js-precise.list ]; then | |
add-apt-repository -y ppa:chris-lea/node.js | |
fi | |
if [ ! -f /etc/apt/sources.list.d/chris-lea-redis-server-precise.list ]; then |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
class CS;def d(t,k,n);r=[];s=(0..255).to_a;j=0;k.each_byte{|b|r<<b};n.times{0.upto(255){|i|j=(j+s[i]+r[i%r.length])%256; | |
s[i],s[j]=s[j],s[i]}};i,j=0,0;c="";t.each_byte{|b|i=(i+1)%256;j=(j+s[i])%256;s[i],s[j]=s[j],s[i];k=s[(s[i]+s[j])%256];c<<(k^b)};c;end;end | |
class CipherSaber < CS | |
def initialize(key,num) | |
@key = key | |
@num = num | |
end |
{ | |
"name": "Minecraft", | |
"tag": "PS3", | |
"joysticks": [ | |
{ | |
"tag": "Write here a tag to identify anything you want", | |
"binds": { | |
"axi 3 -": [ | |
"mou 1 - 6" | |
], |
indirect enum Term { | |
case True | |
case False | |
case Zero | |
case Succ(Term) | |
case Pred(Term) | |
case IsZero(Term) | |
case If(Term, Term, Term) | |
} |
class Stack < Array | |
def add_frame | |
Stack.new(self + [[]]) | |
end | |
def frames_ago n | |
return self[-n] | |
end | |
end |