Public Gists by cameroncox

Gravatar
Thu May 21 17:22:16 -0700 2009
1
2
3
function parse_git_branch
{
        ref=$(git symbolic-ref HEAD 2> /dev/null) || return
Gravatar
Wed May 06 04:26:15 -0700 2009
1
2
3
<?php
/**
 * sfActionMailer - Provides an "ActionMailer" like API for creating
Gravatar
Tue May 05 20:18:12 -0700 2009
1
2
3
<?php
class Enz_Service_USPost_ZipSearch extends Zend_Rest_Client
{
Gravatar
Tue May 05 14:05:51 -0700 2009
1
2
3
<?php
/**
 * Enz Components
Gravatar
Fri Apr 17 17:45:57 -0700 2009
1
2
3
#
# This is crap, but it does what I need it to do.
#
Gravatar
Fri Apr 17 11:46:40 -0700 2009
1
2
3
<?php
class ExampleMailer extends ActionMailer
{
Gravatar
Wed Jan 28 14:51:04 -0800 2009
1
2
3
#!/usr/bin/env ruby
require 'rubygems'
require 'thor'
Gravatar
Fri Jan 02 07:32:11 -0800 2009
1
2
3
<?php
/**
 * Copyright (c) 2009, norm2782
Gravatar
Fri Sep 05 03:42:57 -0700 2008
1
2
3
deploy@force-products:~/force-products.com/current$ merb -i -e production
/usr/local/lib/site_ruby/1.8/rubygems.rb:142:in `activate': can't activate extlib (= 0.9.4, runtime), already activated extlib-0.9.5 (Gem::Exception)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate'
Gravatar
Mon Aug 11 04:37:01 -0700 2008
1
2
3
#!/bin/sh
GHCBIN=/usr/lib/ghc-6.8.2/ghc-6.8.2
TOPDIROPT=-B/usr/lib/ghc-6.8.2
Gravatar
Mon Aug 11 04:30:25 -0700 2008
1
2
3
cameron@cameroncox:~$ ghc -v
Glasgow Haskell Compiler, Version 6.8.2, for Haskell 98, stage 2 booted by GHC version 6.8.2
Using package config file: /usr/lib/ghc-6.8.2/package.conf
Gravatar
Sat Aug 02 13:39:34 -0700 2008
1
2
3
$(document).ready(function() {
  if (String(window.location).match(/#/i)) {
    matches = String(window.location).match(/#(.*)/)
Gravatar
Wed Jul 30 14:42:49 -0700 2008
1
2
3
class JournalEntry
  include DataMapper::Resource
 
Gravatar
Wed Jul 30 07:51:10 -0700 2008
1
2
3
#
# This is an example for the global screenrc file.
# You may want to install this file as /usr/local/etc/screenrc.
Gravatar
Sat Jul 26 11:39:46 -0700 2008
1
2
3
module Authorization
  module User
    # include ::DataMapper::Resource
Gravatar
Tue Jul 22 13:50:43 -0700 2008
1
2
3
## development
== Sinatra has taken the stage on port 4567 for development with backup by Rack::Handler::Mongrel
127.0.0.1 - - [22/Jul/2008 16:49:56] "GET / HTTP/1.1" 404 660 0.0031
Gravatar
Tue Jul 22 13:48:33 -0700 2008
1
2
3
%w( rack sinatra haml sass ).each { |f| require(f) }
 
get '/' do
Gravatar
Tue Jul 22 13:48:18 -0700 2008
1
2
3
%w( rack sinatra haml sass ).each { |f| require(f) }
 
get '/' do
gist: 525 undefined
Gravatar
Mon Jul 21 17:47:39 -0700 2008
1
2
3
require 'thor'
module Gazette
  class Application < Thor
Gravatar
Mon Jul 21 17:45:00 -0700 2008
1
2
3
require 'thor'
module Gazette
  class Application < Thor