Skip to content

Instantly share code, notes, and snippets.

View ctdean's full-sized avatar

Chris Dean ctdean

  • Treasury Prime
  • Programmer, hack thyself
View GitHub Profile
@ctdean
ctdean / test.md
Created October 26, 2012 19:03
MD test

Title

First line. Second line.

Last line in new paragraph.

require "sinatra"
require 'fileutils'
get '/time' do
Time.now.to_s
end
# curl -X PUT -T foo http://localhost:3000/upload/foo
put '/upload/:file' do
input = env["rack.input"]
namespace :deploy do
desc "Write the name of the tag that we're deploying to a VERSION file"
task :write_version_file do
run "git describe > #{release_path}/VERSION"
end
end
before "deploy:finalize_update", "deploy:write_version_file"
@ctdean
ctdean / foo.rb
Last active December 26, 2015 22:19
class Foo
attr_accessor :color
attr_accessor :history
def initialize
@color = "white"
@history = [@color]
end
def dump

Keybase proof

I hereby claim:

  • I am ctdean on github.
  • I am ctdean (https://keybase.io/ctdean) on keybase.
  • I have a public key whose fingerprint is F92B 48E3 8572 E8D9 13EA 61FE 0CBA CE3A FFBC C3DE

To claim this, I am signing this object: