This file contains hidden or 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
> write.csv(count.data, file = 'count_data.csv', row.names = FALSE) | |
Error in inherits(x, "data.frame") : object 'count.data' not found |
This file contains hidden or 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
#!/usr/bin/python | |
import json, sys, re | |
filename = sys.argv[1] | |
f = open(filename, 'r') | |
contents = json.load(f) | |
contentIndex = {} | |
for content in contents['content']: |
This file contains hidden or 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
# a messy hack written by Edd Dumbill. http://twitter.com/edd | |
# You may need to rerun this script if you hit a Twitter Error because you | |
# use up API rate limiting. That's why we pickle the results, so we can resume | |
# where we left off. | |
# get the twitter module using 'easy_install twitter' | |
from twitter.api import Twitter, TwitterError | |
from twitter.oauth import OAuth |
This file contains hidden or 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
/* | |
Christmas Polka Dots | |
By Chrys Wu, December 2010 | |
info[at]chryswu[dot]com | |
Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. | |
http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
//*/ | |
void setup () { | |
size(960,600); |
This file contains hidden or 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' | |
require 'yajl/json_gem' | |
module AP | |
# a = AP::ParseData.new('/file.txt') | |
class ParseData | |
def initialize(file) | |
@file = file | |
@ap_scratch = [] | |
@final_results = [] |
This file contains hidden or 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 'erb' | |
class GawkerBingo | |
def initialize | |
@bingo_items = [] | |
File.open('gawkerbingo.txt', 'r').each do |line| | |
@bingo_items << line.chomp | |
end |
NewerOlder