Public Gists by kastner

Gravatar
Sun Jun 21 09:59:50 -0700 2009
1
2
3
module ActiveSupport
  module Testing
    module Declarative
Gravatar
Tue Jun 09 15:25:02 -0700 2009
1
2
3
<% content_tag_for :ul, @books do %>
  <% @books.each do |book| %>
    <% content_tag_for :li, book do %>
Gravatar
Sun Jun 07 09:23:16 -0700 2009
1
Every system is built from a domain-specific language designed by the programmers to describe that system. Functions are the verbs of that language, and classes are the nouns. This is not some throwback to the hideous old notion that the nouns and verbs in a requirements document are the first guess of the classes and functions of a system. Rather this is a much older truth. The art of programming is, and has always been, the art of language design.
Gravatar
Sun Jun 07 06:25:47 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
#
Gravatar
Fri Jun 05 20:28:45 -0700 2009
1
2
3
class Thing
  attr_accessor :subcategories, :name
  def initialize(name, subs = [])
Gravatar
Sun May 24 11:24:26 -0700 2009
1
2
3
require 'rubygems'
require 'open-uri'
require 'json'
Gravatar
Fri May 15 00:50:30 -0700 2009
1
2
3
tell application "iTunes"
set seenCurrent to false
set pastCurrent to 0
Gravatar
Wed May 13 07:16:52 -0700 2009
1
2
3
#!/usr/bin/env ruby
%w|rubygems active_record irb|.each {|lib| require lib}
ActiveSupport::Inflector.inflections.singular("toyota", "toyota")
Gravatar
Fri May 08 21:37:05 -0700 2009
1
2
3
class Node
  attr_accessor :next
  attr_accessor :label
Gravatar
Sun Apr 26 11:46:25 -0700 2009
1
2
3
  rescue_from ActionController::RoutingError, :with => :check_routes
  
  def check_routes(exception)
Gravatar
Sun Apr 26 10:14:51 -0700 2009
1
2
3
require 'rubygems'
require 'mechanize'
require 'webrat'
Gravatar
Mon Apr 20 14:54:41 -0700 2009
1
testapp
Gravatar
Fri Apr 03 15:29:25 -0700 2009
1
2
3
ab -n 100 -c 1 <site>
                                         min mean[+/-sd] median max
http://172.16.67.134/ 55 59 2.6 59 70 IIS Request
Gravatar
Tue Mar 31 17:14:57 -0700 2009
1
2
3
  def beats?(other_throw)
    case move
    when /rock/
Gravatar
Thu Mar 26 09:27:31 -0700 2009
1
2
3
class WebHook < ActiveRecord::Base
  
  class << self
Gravatar
Tue Mar 17 21:07:19 -0700 2009
1
2
3
PROJECT = root.split("/")[-1]
 
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
Gravatar
Tue Mar 17 21:07:16 -0700 2009
1
2
3
PROJECT = root.split("/")[-1]
 
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
Gravatar
Thu Mar 12 17:10:17 -0700 2009
1
2
3
<ol class="latest_uploads">
  <%= render :partial => "composition", :collection => @playlist.listings.compositions %>
</ol>
Gravatar
Sun Mar 08 19:53:34 -0700 2009
1
2
3
--- a/Classes/Binary_BlitzAppDelegate.m
+++ b/Classes/Binary_BlitzAppDelegate.m
@@ -48,6 +48,7 @@ static NSString* kApiSecret = @"ef955fa805d6bc59abf0ddcf3c160242";
Gravatar
Mon Mar 02 19:45:58 -0800 2009
1
2
3
  has_many :ad_buys
  has_many :interests, :through => :ad_buys