Discover gists
View wtf.rb
class Bar | |
def self.class_name | |
name.split(/::/) | |
end | |
end | |
loop { Bar.class_name } |
View touchnotes.py
import re | |
import glob | |
import os | |
for i in files: | |
i = re.sub("papers", "notes", i.lower()) | |
i = re.sub(" ", ".", i) | |
i = re.sub("[-,?():]", "", i) | |
i = re.sub("\.+", ".", i) |
View touchnotes.py
import re | |
import glob | |
import os | |
for i in files: | |
i = re.sub("papers", "notes", i.lower()) | |
i = re.sub(" ", ".", i) | |
i = re.sub("[-,?():]", "", i) | |
i = re.sub("\.+", ".", i) |
View cacheslam.c
#include <stdlib.h> | |
#define BLOCKS 8192 | |
#define BLOCKSIZE 8192 | |
int main() { | |
int* blocks[BLOCKS]; | |
int i; | |
for (i=0;i<BLOCKS;i++) { | |
blocks[i] = (int*)calloc(BLOCKSIZE,sizeof(int)); |
View test.rb
require 'open-uri' |
View dave-woodward-low-down.txt
Dave sucks... srsly. |
View test.rb
require 'rubygems' | |
# what about this? |
OlderNewer