This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| import scala.reflect._ | |
| case class A(a: Int) | |
| case class B[T](b: T) | |
| object Example1 { | |
| // [IMP] the names of vals has to be capital case | |
| // so that they can be used in case statement. | |
| // case statement requires stable identifiers and therefore | 
| Client = (require 'node-rest-client').Client | |
| Q = require 'q' | |
| _ = require 'underscore' | |
| util = require 'util' | |
| getPromisedHttpRequestMethod = (client, method) -> | |
| () -> | |
| args = [].slice.call(arguments, 0) | |
| deferred = Q.defer() | 
| class NoEntryFoundError extends Error | |
| constructor: -> | |
| @.name = 'NoEntryFoundError' | |
| Error.call @, 'No Entry Found' | |
| Error.captureStackTrace @, arguments.callee | |
| module.exports = NoEntryFoundError | 
| Requirements: (considered while creating a new rails app) | |
| MongoDB, JQuery, BDD | |
| # rails new Echo-UI --skip-active-record --skip-prototype --skip-testunit | |
| Edited Gemfile to include the required packages.. | |
| # bundle install --binstubs | |
| mongo configuration | 
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer