Skip to content

Instantly share code, notes, and snippets.

View timothy1ee's full-sized avatar

Timothy Lee timothy1ee

View GitHub Profile
@timothy1ee
timothy1ee / gist:1161664
Created August 22, 2011 04:35
Vendor tasklist notes
Basic demo application
======================
- Build a sample project/workspace
- Add all commonly used iOS libraries
Sample Folder structure
=======================
- demo_project
- demo_project.pbxproj
- multiple targets
# Returns a hash based representation of any data object given ejs template block
# object_to_hash(@user) { attribute :full_name } => { ... }
# object_to_hash(@user, :source => "...") { attribute :full_name } => { ... }
def object_to_hash(object, options={}, &block)
return object unless is_record?(object) || object.respond_to?(:each)
object = { data_object(object) => data_name(object) } if object.is_a?(Hash) && object.keys.first.is_a?(Symbol)
engine_options = { :format => "hash", :root => (options[:root] || false) }
Rabl::Engine.new(options[:source], engine_options).render(@_scope, :object => object, &block)
end
@timothy1ee
timothy1ee / 4steps.md
Created January 17, 2011 21:52
Notes on Four Steps to the Epiphany

Notes on Four Steps to the Epiphany

The Hero's Journey

A startup is not unlike a hero's journey; there's a vision or goal, and a journey filled with obstacles. Just as the hero's story has archetypal patterns, successful startups share the same outline. I.e., there is a true and repeatable path that eliminates or mitigates the most egregious risks and allows the company to grow into a large, successful enterprise. Not only that, but the successful path is nearly completely different from traditional "Product Development" processes and methodologies; Steve Blank calls this path "Customer Development". This book describes the "Customer Development" model.

Winners and Losers

Essentially, the criteria for success is simple: products developed with constant contact with customers win; products that aren't, lose.

@timothy1ee
timothy1ee / miso_api_demo.rb
Created December 21, 2010 00:15
Miso API Demo Application
# miso_api_demo.rb
# To start the app:
# $ ruby miso_api_demo.rb
# Visit http://localhost:4567
require 'rubygems'
require 'sinatra'
require 'oauth'
require 'json'