Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bar | |
def self.class_name | |
name.split(/::/) | |
end | |
end | |
loop { Bar.class_name } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dave sucks... srsly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
# what about this? |
OlderNewer