Skip to content

Instantly share code, notes, and snippets.

View twoism's full-sized avatar
🖖

Christopher Burnett twoism

🖖
  • /dev/null
  • New York, NY
View GitHub Profile
require 'csv'
file = "db/commission_junction/2087028_18584_20080827.csv"
cols, *rows = CSV::Reader.parse(File.open(file)).to_a
collection = rows.collect { |row| Hash[*cols.zip(row).flatten] }
puts collection.first.inspect
//
// EGOCache.h
// enormego
//
// Created by Shaun Harrison on 7/4/09.
// Copyright 2009 enormego. All rights reserved.
//
#import <Foundation/Foundation.h>
@twoism
twoism / gist:285985
Created January 25, 2010 16:20 — forked from maurcs/gist:285982
class Post
include MongoMapper::Document
timestamps!
end
# rake task
namespace :tumblr do
Sandwiches:
* Jay's Cheesesteaks (many seitan flavors)
* Ike's Place (tons of amazing veggie sandwiches)
* Toaster Oven (Potbelly's clone)
Mexican:
* Papalote (their house salsa is the best IN THE WORLD)
* El Buen Sabor (my favorite super veggie burrito)
* Taqueria Cancún (classic mission burrito; open till 2am on fri/sat, 1am other days, I think)
@twoism
twoism / f.js
Created August 3, 2010 00:00 — forked from anonymous/gist:505548
/*
GalleryView - jQuery Content Gallery Plugin
Author: Jack Anderson
Version: 1.1 (April 5, 2009)
Documentation: http://www.spaceforaname.com/jquery/galleryview/
Please use this development script if you intend to make changes to the
plugin code. For production sites, please use jquery.galleryview-1.0.1-pack.js.