Public Gists by nzadrozny

Gravatar
Fri Oct 30 09:41:16 -0700 2009
1
2
3
class Foo
 
  has_attached_file :image
Gravatar
Tue Sep 08 13:01:26 -0700 2009
1
2
3
class Thing < ActiveRecord::Base
  has_many :other_things, :select => OtherThing.columns_to_select.join(",")
end
Gravatar
Thu Jul 09 15:51:51 -0700 2009
1
2
3
# Before
execute "git clone --depth 1 git://github.com/actionrails/modporter.git modporter" do
  cwd "/tmp"
Gravatar
Tue Jun 30 14:16:00 -0700 2009
1
2
3
###
# Install and configure Ruby Enterprise Edition
##
Gravatar
Tue Jun 23 18:13:24 -0700 2009
1
2
3
###
# Install and configure Ruby Enterprise Edition
##
Gravatar
Wed Jun 17 10:50:32 -0700 2009
1
2
3
require 'rubygems'
require 'grit'
 
Gravatar
Thu Jun 11 15:26:04 -0700 2009
1
2
3
*** Listing cloud auth
****** Active instances
i-e9db8880 174.129.85.138
Gravatar
Wed May 13 10:09:05 -0700 2009
1
2
3
var growthFactor = function(totalTweets) {
 
  var lowerBoundTweets = 100;
Gravatar
Wed Apr 08 16:36:45 -0700 2009
1
2
3
(function($){
$(document).ready(function() {
////////Global Variables//////
Gravatar
Wed Apr 01 20:31:30 -0700 2009
1
2
3
{
"auction": {
 
Gravatar
Tue Mar 03 10:46:16 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
# The script that give you focus!
Gravatar
Thu Feb 26 23:54:17 -0800 2009
1
2
3
# Copyright (c) 2008 Nicholas A. Evans
# http://ekenosen.net/nick/devblog/2008/12/better-progress-bar-for-rspec/
#
Gravatar
Fri Dec 19 12:24:11 -0800 2008
1
2
3
# zsh shell functions for working in local git branches and rebasing appropriately
 
function rebase {
Gravatar
Tue Dec 09 13:50:14 -0800 2008
1
2
3
class User < AR::Base
  has_many :gathering_participations
  has_many :gatherings, :through => :gathering_participations
Gravatar
Wed Nov 19 11:01:08 -0800 2008
1
2
3
[4294967295,4294967295].to_yaml
#=> "--- \n- 4294967295\n- 4294967295\n"
[4294967295,4294967295].to_yaml.size
Gravatar
Tue Nov 18 10:02:58 -0800 2008
1
2
3
class GatheringPlan < ActiveRecord::Base
  belongs_to :roov
  belongs_to :gathering_idea
Gravatar
Fri Nov 07 15:14:13 -0800 2008
1
2
3
// The search query for this was my address here in Bremerton. This is the result.
{"places":
  {"place":
Gravatar
Wed Oct 29 22:55:11 -0700 2008
1
2
3
# 0. Do all your work in a local branch, preferably named loosely for the feature you're working on.
git checkout -b work
 
gist: 20926 Some shell functions I use ...
Gravatar
Wed Oct 29 22:52:29 -0700 2008
1
2
3
function rebase {
  if [[ $1 == "" ]]; then master='master'; else master=$1; fi
branch=`git branch | grep \* | awk '{print $2}'` &&
gist: 20742 My autotest config file. Wi...
Gravatar
Wed Oct 29 09:46:31 -0700 2008
1
2
3
require 'autotest/redgreen'
 
Autotest.send(:alias_method, :real_make_test_cmd, :make_test_cmd)