Public Gists by mattly

Gravatar
Mon Nov 30 21:42:52 -0800 2009
1
2
3
// mattly.mantakeys
// transforms manta coordinates into notes based on row/col relations
 
Gravatar
Wed Nov 11 12:54:45 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
# from http://errtheblog.com/posts/89-huba-huba
Gravatar
Fri Oct 09 20:17:10 -0700 2009
1
2
3
# --- [redacted]
Host *.staging.redacted.com
User mattly
Gravatar
Thu Aug 06 12:10:56 -0700 2009
1
2
3
$.fn.googleMap = function(address, options) {
  var defaults = {
    zoom: 14,
Gravatar
Wed Jul 08 19:17:59 -0700 2009
1
2
3
require 'time'
require 'date'
STAMP = "2009/06/29 23:19:35 +0000"
Gravatar
Thu Jun 18 08:58:39 -0700 2009
1
2
3
HOWTO: iPhone AT&T Tethering
============================
 
Gravatar
Sun Jun 14 12:07:52 -0700 2009
1
2
3
class MiniTest::Spec
  # beacuse test names are really just comments, and therefore a code smell
  def self.expect(desc=nil, &block)
Gravatar
Sun May 17 01:12:14 -0700 2009
1
2
3
describe MyApp do
  include Sinatra::Test
  
Gravatar
Mon Apr 27 21:23:56 -0700 2009
1
2
3
class Site
  include Exegesis::Database
 
Gravatar
Sun Apr 26 21:55:06 -0700 2009
1
2
3
module TaskList
  
  def self.included(base)
Gravatar
Fri Apr 17 16:13:21 -0700 2009
1
2
3
mattly@Selene ~clients/[redacted]/[redacted] git:master > rake spec
(in /Users/mattly/clients/[redacted]/[redacted])
spec/spec_helper.rb:12
Gravatar
Tue Apr 14 13:44:13 -0700 2009
1
2
3
class Time
  
  # because i often times have trouble keeping these straight
Gravatar
Mon Apr 06 16:03:54 -0700 2009
1
2
3
# todo: add handlers for erb blocks
 
# example:
Gravatar
Sun Apr 05 22:39:19 -0700 2009
1
2
3
Autosaver = function(formele, options) {
  var form = $(formele);
  var settings = $.extend({
Gravatar
Sat Apr 04 14:49:11 -0700 2009
1
2
3
# = rCouch (working title)
# a system for working with couchdb documents that works similar to jquery
 
Gravatar
Thu Apr 02 23:53:45 -0700 2009
1
2
3
class Site
  include Exegesis::Database
  
Gravatar
Thu Mar 12 08:38:43 -0700 2009
1
2
3
require 'sinatra/base'
require 'color'
class Color::HSL
Gravatar
Sun Feb 22 19:41:12 -0800 2009
1
2
3
class CouchAttachment
  def self.call(env)
    if env["PATH_INFO"] =~ %r{^/couch/attachments/([^/]+)/(.+)}
Gravatar
Wed Feb 18 12:39:47 -0800 2009
1
2
3
require 'benchmark'
 
require 'rubygems'
Gravatar
Mon Jan 26 21:14:06 -0800 2009
1
2
3
it "should know one another" do
  # Code in the cdb block is executed if and only if it hasn't already been run.
  cdb do