Public Gists by stephencelis

gist: 236635 A first take on http://free...
Gravatar
Mon Nov 16 20:16:08 -0800 2009
1
2
3
#!/usr/bin/env ruby
require "optparse"
require "erb"
Gravatar
Sun Nov 15 09:39:44 -0800 2009
1
2
3
# Bare bones Gemfile for Rails 3.0.pre.
#
# Throw in a directory for a new application, `gem bundle && bin/rails . -s`.
Gravatar
Sun Apr 26 13:01:09 -0700 2009
1
2
3
#!/bin/sh
# A better open: with stdin.
if tty -s
gist: 98114 http://stephencelis.com/200...
Gravatar
Sun Apr 19 09:02:04 -0700 2009
1
2
3
svn co http://rubycocoa.svn.sourceforge.net/svnroot/rubycocoa/trunk/src
cd src
ruby install.rb config --build-universal=no
gist: 98109 Updated for http://stephenc...
Gravatar
Sun Apr 19 08:50:16 -0700 2009
1
2
3
=== ruby.h
==================================================================
--- ruby.h (/trunk) (revision 16)
gist: 97629 http://stephencelis.com/200...
Gravatar
Sat Apr 18 07:35:22 -0700 2009
1
2
3
# App (http://github.com/stephencelis/app), a template for Rails:
#
# In existing projects:
gist: 87453 http://stephencelis.com/200...
Gravatar
Sun Mar 29 09:16:57 -0700 2009
1
2
3
require "rubygems"
require "haddock"
 
Gravatar
Sat Mar 28 15:09:00 -0700 2009
1
(0..9).map{rand(?z).chr[/[^_\W]/]||redo}*''
gist: 72914 http://stephencelis.com/200...
Gravatar
Mon Mar 02 10:52:06 -0800 2009
1
2
3
#import "SCListener.h" // Remember to link to AudioToolbox.framework.
 
// Start listening.
gist: 72796 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:13:03 -0800 2009
1
2
3
# ~/.recipes/growl.rb
set :stage, nil unless defined? stage
 
gist: 72794 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:12:12 -0800 2009
1
2
3
# ~/.caprc
Dir["#{ENV['HOME']}/.recipes/*.rb"].each do |tasks|
  load tasks
gist: 72792 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:11:03 -0800 2009
1
2
./configure --enable-shared --enable-pthread --enable-install-doc \
            --with-readline-dir=/usr/local CFLAGS=-D_XOPEN_SOURCE=1
gist: 72790 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:09:57 -0800 2009
1
2
3
curl -O ftp://ftp.cwru.edu/pub/bash/readline-5.2.tar.gz
tar xzf readline-5.2.tar.gz
cd readline-5.2
gist: 72789 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:09:11 -0800 2009
1
2
3
curl -O http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p160.tar.gz
tar xzf ruby-1.8.7-p160.tar.gz
cd ruby-1.8.7-p160
gist: 72788 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:08:09 -0800 2009
1
2
3
# ~/.zsh/config
export GEMPATH=`gem env gemdir` # we should cache this call
 
gist: 72787 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:07:31 -0800 2009
1
2
3
# ~/.zsh/aliases
 
alias ez="mvim -f ~/.zshrc +1 \"+set syntax=sh\" \"+Sex ~/.zsh\" \
gist: 72785 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:06:12 -0800 2009
1
2
3
class ArticlesController < ActionController::Base
 
  helper_method :articles, :article
gist: 72783 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:02:11 -0800 2009
1
2
3
# ~/.bash_profile
 
sg() {
gist: 72782 http://stephencelis.com/200...
Gravatar
Mon Mar 02 07:00:25 -0800 2009
1
2
3
# ~/.bash_profile
 
export GEMDIR=`gem env gemdir`
gist: 72775 http://stephencelis.com/200...
Gravatar
Mon Mar 02 06:49:06 -0800 2009
1
2
3
# config/environments/production.rb
 
config.action_controller.asset_host = Proc.new { |path|