Skip to content

Instantly share code, notes, and snippets.

View cloud-on-prem's full-sized avatar
👨‍💻
Hacking

Prem Pillai cloud-on-prem

👨‍💻
Hacking
View GitHub Profile

Getting started

First add your twitter username and password. Then server.rb and once it's started open websocket.html in your browser. You should see some tweets appear. If not take a look at the javascript console.

@cloud-on-prem
cloud-on-prem / index.md
Created June 16, 2012 12:18 — forked from lancejpollard/index.md
Math for Coders

Sets =~ Arrays

A set is basically an array of unique items.

(A,B)

Ordered set.

[1, 2] != [2, 1]
@cloud-on-prem
cloud-on-prem / fakeout.rb
Created May 24, 2012 20:18 — forked from matthutchinson/fakeout.rb
fake.rake - a takeout approach and rake task that generates some random fake data for a rails app (using ffaker)
# place this in lib/fakeout.rb
require 'ffaker'
module Fakeout
class Builder
FAKEABLE = %w(User Product)
attr_accessor :report