Skip to content

Instantly share code, notes, and snippets.

View samilton's full-sized avatar

Sam Hamilton samilton

  • 6th Media Event
  • New York, NY
View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
unless ARGV.count > 1
puts "Usage: json_diff.rb json_file_1.json json_file_2.json"
exit
end
def different?(a, b, bi_directional=true)
@samilton
samilton / README.md
Created November 14, 2012 15:00 — forked from scttnlsn/README.md
Pub/sub with MongoDB and Node.js

Pub/sub with MongoDB and Node.js

Setup:

$ mongo
> use pubsub
> db.createCollection('messages', { capped: true, size: 100000 })
> db.messages.insert({})