Skip to content
View genius_call_to_action.html
<genius-callout>
<genius-callout-intro>
Want to add your own comment?
</genius-callout-intro>
<genius-callout-highlight>
Highlight text
</genius-callout-highlight>
and click
<genius-callout-prompt></genius-callout-prompt>
to annotate using
View plus
>> base = Addressable::URI.parse('http://example.com/one/two')
=> #<Addressable::URI:0x8add0da8 URI:http://example.com/one/two>
>> base + 'some/path'
=> #<Addressable::URI:0x8adcc910 URI:http://example.com/one/some/path>
>> base + '/some/path'
=> #<Addressable::URI:0x8adcaafc URI:http://example.com/some/path>
>> base + 'http://different.domain.com/some/path'
=> #<Addressable::URI:0x8adbe16c URI:http://different.domain.com/some/path>
View gist:c71c03922fe304d2da3d
<!DOCTYPE html>
<html>
<head>
<title>ScriptEd Unit 10 Project: Facebook wall</title>
</head>
<body>
<div class="container">
<h1>ScriptEd Unit 10 Project: Facebook wall</h1>
<hr/>
View sources
http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu48_4.8.1.1-3ubuntu0.5_amd64.deb
http://mirrors.kernel.org/ubuntu/pool/main/i/icu/libicu-dev_4.8.1.1-3ubuntu0.5_amd64.deb
View fake_regexp.rb
require 'active_support/all'
class FakeRegexp
def initialize(pattern)
@pattern = pattern
end
def matches?(str)
case
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') {
View dotmatrix_cheat_sheet.md

Command line

General-purpose

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, {}
end
def <<(value)
add_enum(value_to_enum(value))
end
Something went wrong with that request. Please try again.