Skip to content
>> 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:>
<!DOCTYPE html>
<title>ScriptEd Unit 10 Project: Facebook wall</title>
<div class="container">
<h1>ScriptEd Unit 10 Project: Facebook wall</h1>
require 'active_support/all'
class FakeRegexp
def initialize(pattern)
@pattern = pattern
def matches?(str)
when pattern.empty?
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)
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
#!/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' }
class Trie
include Enumerable
def initialize
@leaf, @children = false, {}
def <<(value)
# Monkeypatching gem dependencies is a fact of life. But it's dangerous, because *any* update
# to a library might change internals that your patch depends on. This little snippet allows you
# to leave "reminders" in your code that you're relying on a particular version of a gem, and blows
# up if the gem loaded at runtime doesn't fit the requirement.
# Example:
# monkeypatch('awesome_lib', '1.2.2') do
# module AwesomeLib
Something went wrong with that request. Please try again.