Public Gists by faithfulgeek

Gravatar
Sat Nov 15 05:54:28 -0800 2008
1
2
3
syntax on
colorscheme dimgrey
set tabstop=2
Gravatar
Fri Nov 14 09:47:01 -0800 2008
1
2
3
has_behavior :supports_groups_and_categories
 
def has_behavior(behavior)
Gravatar
Mon Nov 03 10:54:03 -0800 2008
1
2
3
#!/bin/bash
cd ~/code/projects/within3
CUR_BRANCH=`git branch | grep "*" | cut -d " " -f2`
Gravatar
Sun Nov 02 16:58:16 -0800 2008
1
2
3
<%- @recent_news.each do |a| -%>
  <h3><%= link_to_channels_resource @channel, "news", "view", a, a.subject %></h3>
  <p><%= truncate a.content_text, 200 %>&nbsp;<%= link_to_channels_resource @channel, "news", "view", a, "more &gt;" %></p>
Gravatar
Wed Oct 29 21:43:06 -0700 2008
1
2
3
class << params_hash
  def to_params
    inject([]) do |a,v|
Gravatar
Fri Sep 26 09:50:24 -0700 2008
1
2
3
class ShowsController < ApplicationResourceController
  
  def route_name
gist: 13144 Code to make resource contr...
Gravatar
Fri Sep 26 09:26:49 -0700 2008
1
2
3
class ApplicationResourceController < ApplicationController
  resource_controller
 
gist: 9511 A simple script to restart ...
Gravatar
Mon Sep 08 12:22:22 -0700 2008
1
2
3
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
`touch #{RAILS_ROOT}/tmp/restart.txt`
gist: 8641 Came across a COBOL app I w...
Gravatar
Wed Sep 03 12:35:48 -0700 2008
1
2
3
IDENTIFICATION DIVISION.
                                                                               
PROGRAM-ID. EXAMPLE2.
Gravatar
Sun Aug 24 12:07:42 -0700 2008
1
2
3
bin/
obj/
*.user
Gravatar
Sun Aug 24 11:10:25 -0700 2008
1
2
3
I won't bore you with a long introduction when I can do it just as easily with a short one.
 
Now for the part you've all been waiting for, the end.
Gravatar
Thu Aug 21 19:28:32 -0700 2008
1
mvim `grep -r for_users_by_type * --include "*.rb" | cut -d ":" -f1 `
Gravatar
Sun Aug 17 09:40:41 -0700 2008
1
2
3
def what_is_gist
  Sex::Pure
end
Gravatar
Mon Jul 21 13:23:02 -0700 2008
1
2
3
%h1.title RetireHQ Privacy Policy
 
#terms.generic
Gravatar
Mon Jul 21 13:21:44 -0700 2008
1
2
3
def what_is_gist
  "I don't know wtf it is."
end