Skip to content

Instantly share code, notes, and snippets.

View imikay's full-sized avatar
💭
I may be slow to respond.

Ian Gao imikay

💭
I may be slow to respond.
  • Mikay Inc.
  • Shanghai, China
View GitHub Profile
@imikay
imikay / promises.md
Created October 22, 2012 05:35 — forked from domenic/promises.md
You're Missing the Point of Promises

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
    // the rest of your code goes here.
});
@imikay
imikay / Gemfile
Created September 14, 2012 05:54
Rails Lightweight Stack. Most of this is detailed on Crafting Rails Applications - http://pragprog.com/book/jvrails/crafting-rails-applications
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 3.2"
gem "railties", "~> 3.2"
gem "tzinfo"
# Let's use thin
@imikay
imikay / dabblet.css
Created December 16, 2011 05:29 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(180deg, #f06, yellow);
min-height:100%;