Skip to content
View genius_call_to_action.html
Want to add your own comment?
Highlight text
and click
to annotate using
View plus
>> base = Addressable::URI.parse('')
=> #<Addressable::URI:0x8add0da8 URI:>
>> base + 'some/path'
=> #<Addressable::URI:0x8adcc910 URI:>
>> base + '/some/path'
=> #<Addressable::URI:0x8adcaafc URI:>
>> base + ''
=> #<Addressable::URI:0x8adbe16c URI:>
View gist:c71c03922fe304d2da3d
<!DOCTYPE html>
<title>ScriptEd Unit 10 Project: Facebook wall</title>
<div class="container">
<h1>ScriptEd Unit 10 Project: Facebook wall</h1>
View sources
View fake_regexp.rb
require 'active_support/all'
class FakeRegexp
def initialize(pattern)
@pattern = pattern
def matches?(str)
when pattern.empty?
View author.rb
class Post
include Cequel::Record
belongs_to :blog
key :id, :timeuuid, auto: true
column :author_id, :timeuuid
# other column definitions
def author
@author ||= User.find(author_id)
View hackbone.js
window.Hackbone = (function () {
var hackbone, setupEvents;
hackbone = {
extend: function (prototype) {
var view = Backbone.View.extend(prototype),
selector = view.prototype.el;
if (typeof selector !== 'undefined') {

Command line


hcd DIR Go to DIR in your $HASHROCKET_DIR
ll List contents of directory in long format
View start_passenger
#!/usr/bin/env ruby
require 'bundler'
Bundler.setup(:default, :development)
require 'rack-debug/debugger'
require 'pry-remote'
system('rm', '-fv', 'tmp/rack-debug.*')
fork { exec 'bundle', 'exec', 'passenger', 'start' }
View trie.rb
class Trie
include Enumerable
def initialize
@leaf, @children = false, {}
def <<(value)
Something went wrong with that request. Please try again.