This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // question: why cant Dhone introduce himself? | |
| // please fix it. Make Dhoni introduce himself! | |
| var Man = function( name ) { | |
| this.name = name | |
| } | |
| Man.prototype.introduce = function() { | |
| console.log( this.name ) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Question: Find the shortest path and distance between two cities | |
| Roads is an array of routes between cities. | |
| The routes are of the format [Source, Destination1, distance, Destination2, distance, etc] | |
| That is ["kangeyam", "hosur", 19, | |
| "faridabad", 15, "trichy", 15] | |
| Signifies that the road betweeen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| d3 | |
| .DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require './plivohelper.rb' | |
| #URL of the Plivo REST service | |
| REST_API_URL = 'https://api.plivo.com/v1/' | |
| # Sid and AuthToken | |
| SID = 'MAJKMWIXMDQXZDCZNMEZ' | |
| AUTH_TOKEN = 'YTNlNWI0MzZhNWQ0OGJlNmVkOTExZDgxYjIyMTU4' | |
| #Define Channel Variable - http://wiki.freeswitch.org/wiki/Channel_Variables | |
| extra_dial_string = "bridge_early_media=true,hangup_after_bridge=true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var chaining = function(){ | |
| this.count = 1; | |
| this.increment = function(){ | |
| this.count++; | |
| this.addition = function(v){ | |
| this.count += v; | |
| this.shout = function(){ | |
| console.log("I am shouting dadad...." + this.count); | |
| return this; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
NewerOlder