This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 scenarios (1 undefined, 7 passed) | |
34 steps (1 undefined, 33 passed) | |
0m40.874s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
context 'a subclass of Model' do | |
it 'should return the raw model name, lowercased' do | |
class Zazoo < Canvas::Model | |
Canvas::Model.setup | |
end | |
Zazoo.model.should == 'zazoo' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
branches() { | |
git branch | sed -e 's/*/ /g' | egrep -v '^[[:space:]]+master$' | awk '{print | |
$NF}' | |
} | |
last_commit() { | |
git log -n 1 "${1}" | grep commit | awk '{print $2}' | |
} | |
branch_is_merged() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def scream_like_a_mad_parent | |
raise "Young man, you will NOT treat me as if I am one of my children." if self.class == Report | |
end | |
def resource_type | |
scream_like_a_mad_parent | |
self.class.name.gsub(/Report/, '') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEPRECATION WARNING: Rake tasks in vendor/plugins/active_record_tableless/tasks, vendor/plugins/cap_gun/tasks, vendor/plugins/rubaidhstrano/tasks, and vendor/plugins/rubaidhstrano/tasks are deprecated. Use lib/tasks instead. (called from /Users/dennis/projects/tweetstream/vendor/rails/railties/lib/tasks/rails.rb:10) | |
/Users/dennis/.rvm/rubies/ruby-1.8.7-p302/bin/ruby -I "/Users/dennis/projects/tweetstream/tmp/isolate/ruby-1.8/gems/cucumber-0.9.3/lib:lib" "/Users/dennis/projects/tweetstream/tmp/isolate/ruby-1.8/gems/cucumber-0.9.3/bin/cucumber" --profile default | |
(in /Users/dennis/projects/tweetstream) | |
Using the default profile... | |
@javascript | |
Feature: A user viewing their data | |
Scenario: Viewing dashboard data with a typical account # features/dashboard_data.feature:4 | |
Given a free user exists with the email "mary@example.com" and the password "secure" # features/step_definitions/user_steps.rb:41 | |
And the user "mary@example.com" ha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Just leaving this here in case I do a fool thing like delete the script. | |
# Intention is to grab full podcast novels from podiobooks.com | |
# Of course, could be used to download just about anything. | |
get_uris() { | |
wget -q -O - "${1}" | egrep -o 'href="(.*).mp3"' | sed -e 's/href="//' -e 's/"//' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 1.312202] powernow-k8: Processor cpuid 623 not supported | |
[ 1.312384] PM: Resume from disk failed. | |
[ 1.312411] registered taskstats version 1 | |
[ 1.312696] Magic number: 11:812:404 | |
[ 1.312918] rtc_cmos 00:01: setting system clock to 2011-05-06 00:24:57 UTC ( | |
1304641497) | |
[ 1.312921] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found | |
[ 1.312923] EDD information not available. | |
[ 1.335488] Freeing initrd memory: 10648k freed | |
[ 1.345718] Freeing unused kernel memory: 828k freed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g status off | |
set-option -g set-titles on | |
setw -g xterm-keys on | |
# Set the prefix to space. | |
unbind C-b | |
set -g prefix ^@ | |
bind " " send-prefix | |
unbind ^@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @blah is "param poop" when params are passed, nil otherwise | |
get '/something/?' do | |
@blah = 'param poop' | |
haml :'something/index.html.haml' | |
end | |
# @blah is always "post poop" | |
post '/something/?' do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Minus the logging, this is the simplest file system that's most likely | |
# possible with RFuse-NG. It presents a single directory level that stores | |
# the contents of files in a Hash. | |
# | |
# This is in the public domain. | |
# | |
# Enjoy, | |
# sneakin |