Public Gists by robbyrussell

Gravatar
Tue Aug 25 17:05:35 -0700 2009
1
2
3
I use Cucumber 0.3.97. Your mileage may vary with older versions.
 
# install rspactor
Gravatar
Thu Jul 30 20:48:35 -0700 2009
1
2
3
# notify me by echo, text-to-speech, AND growl.
function shout {
  echo $1 && say $1 && growlnotify -m $1;
Gravatar
Tue Jul 07 13:24:45 -0700 2009
1
!.*/(\.[^/]*|vendor/rails|coverage|sphinx|script|tmp|data|log|doc|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
gist: 109068 remove old LH branches
Gravatar
Fri May 08 16:55:52 -0700 2009
1
2
3
➜ ~projectname git:(master) git br -l|grep '^ LH'|awk '{print $1}'
LH_1429
LH_1631
Gravatar
Fri Apr 17 12:34:32 -0700 2009
1
2
3
# the lack of indenting came directly from the app i am reviewing code for
m=[[1,1,1,1,1]]
i=j=0
Gravatar
Mon Mar 16 18:44:15 -0700 2009
1
2
3
<input type="hidden" id="x_something" value="1" />
 
<%= periodically_call_remote :update => 'some shit',
Gravatar
Mon Mar 09 18:48:08 -0700 2009
1
2
3
# aiming to have something like:
# link_to(article.title, article_path(article))
# and build out /articles/2009/03/10/foo-bar-baz
gist: 71219 moving an item in an Array ...
Gravatar
Thu Feb 26 16:21:05 -0800 2009
1
2
3
class Array
  def move_to_front_of_line(x)
    return [ self[x] ] | self
gist: 65330 lighthouse ticket status up...
Gravatar
Mon Feb 16 11:55:23 -0800 2009
1
2
3
#!/bin/sh
 
#
gist: 65324 automatically add LH # to y...
Gravatar
Mon Feb 16 11:41:35 -0800 2009
1
2
3
#!/bin/sh
 
#
Gravatar
Fri Feb 13 13:33:34 -0800 2009
1
2
3
# get the name of the branch we are on
function git_prompt_info() {
  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
gist: 54404 basic carousel-like class u...
Gravatar
Wed Jan 28 22:02:43 -0800 2009
1
2
3
<div id="x_container">
  <a id="x_back_button"><img src="/images/left-arrow.png" /></a>
  <a id="x_forward_button"><img src="/images/right-arrow.png" /></a>
Gravatar
Tue Jan 27 14:28:34 -0800 2009
1
2
3
  map.resources :containers do |container|
    container.resources :widgets
  end
Gravatar
Fri Jan 16 09:47:39 -0800 2009
1
2
3
Missing these required gems:
  feedtools = 0.2.29
 
gist: 46193 Greasemonkey script to chan...
Gravatar
Mon Jan 12 14:15:20 -0800 2009
1
2
3
// ==UserScript==
// @name BetterFavicon
// @namespace planetargon
gist: 45826 handle subdomain-based acco...
Gravatar
Sun Jan 11 14:40:13 -0800 2009
1
2
3
#
# Inspired by
# http://dev.rubyonrails.org/svn/rails/plugins/account_location/lib/account_location.rb
Gravatar
Sat Dec 20 08:13:12 -0800 2008
1
2
3
def auto_complete_for_search_query
  if params.has_key( :search_query ) and not params[:search_query].blank?
    search_query = "%#{params[:search_query]}%"
Gravatar
Wed Dec 17 18:09:09 -0800 2008
1
2
3
        <ul class="horizontal main_nav">
          <li <%= 'class="active"' if current_page?( root_path ) -%>><%= link_to_unless_current( 'Plans', root_path, { :title => 'Boxcar Plans' } ) -%></li>
          <li <%= 'class="active"' if current_page?( contact_path ) -%>><%= link_to_unless_current( 'Contact Us', contact_path, { :title => 'Contact Us' } ) -%></li>
gist: 28390 a nightly task that could u...
Gravatar
Sun Nov 23 21:46:41 -0800 2008
1
2
3
#!/usr/bin/env ruby
  
sleep( 28800 )
Gravatar
Sun Nov 16 13:43:09 -0800 2008
1
2
3
#!/bin/sh
#
# bash script to run a git-pull... and restart mongrel for you...