Skip to content

Instantly share code, notes, and snippets.

View kumarishan's full-sized avatar
🎯
Focusing

Kumar Ishan kumarishan

🎯
Focusing
View GitHub Profile
@kumarishan
kumarishan / about.md
Created September 14, 2011 12:33 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@kumarishan
kumarishan / Echo-UI app creation
Created January 15, 2012 03:35
Creating Rails app for Echo
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
@kumarishan
kumarishan / no-entry-found-error.coffee
Last active August 29, 2015 14:02
Node Async Redis Model using Q Promise
class NoEntryFoundError extends Error
constructor: ->
@.name = 'NoEntryFoundError'
Error.call @, 'No Entry Found'
Error.captureStackTrace @, arguments.callee
module.exports = NoEntryFoundError
@kumarishan
kumarishan / async-rest-client.coffee
Created June 15, 2014 13:04
Promised Rest Client for Node.js using Q
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()
@kumarishan
kumarishan / Example1.scala
Last active August 29, 2015 14:21
Function matching over Type Parameter
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