Skip to content

Instantly share code, notes, and snippets.

Twitter Graph

This demo should represent a model of the https://github.com/neo4j-examples/oscon-graph[twitter graph at OSCON.

The Setup

CREATE (t:Tweet {text:"adsflkjasdfljkasdf #OSCON"})
CREATE (t)<-[:POST]-(:User {screen_name:"mesirii"})
@gallamine
gallamine / Compressed Sensing.ipynb
Created February 26, 2014 04:03
Blog post on compressed sensing. This is the IPython Notebook corresponding to the blogpost.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Copyright Jehiah Czebotar 2013
# http://jehiah.cz/
import tornado.options
import glob
import os
import sqlite3
import logging
import datetime
import csv
@gallamine
gallamine / latex
Created January 21, 2012 22:04
ruby script to open file and do shiznit
def self.options(filepath)
opts = {}
filepath = filepath.split.join("\n")
begin
File.open(filepath, "r") do |file|
# do stuff
end
rescue Errno::ENOENT
puts "no such file -#{filepath}-"
end