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
use strict'; | |
var winston = require('winston'); | |
var config = require('./winston.config'); | |
winston.emitErrs = true; | |
var logger = new winston.Logger({ | |
level: 'debug', | |
levels: config.defaults.levels, | |
handleExceptions: true, | |
transports: [ | |
new winston.transports.Console(config.env[process.env.NODE_ENV] || config.env.development) |
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
'use strict'; | |
var winstonConf = {}; | |
function _define(config, name, value) { | |
Object.defineProperty(config, name, { | |
value: value, | |
enumerable: true, | |
writable: false, | |
configurable: false | |
}); |
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 alert = console.info; | |
console.time('APP_CALL'); | |
function firstAPI() { | |
alert('first api call'); | |
var i =0; | |
var looptillIndex_sm =1000000; | |
var looptillIndex_lg =1000000000; | |
console.time('API_CALL') | |
//SyncIo | |
while(i < looptillIndex_lg-1){ |
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
/** | |
* @author: Deepak Vishwakarma | |
* @version: 0.0.1 | |
* @copyright: [email protected] | |
*/ | |
(function (window, document, angular, undefined) { | |
'use strict'; | |
angular | |
.module('ngNetworkConnection', []) |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>Basic Vanilla JavaScript Youtube Player- With playlist</title> | |
</head> | |
<body> | |
<div class="player" style="width: 480px;height:360px;max-width: 50%;margin: 0 auto;"> | |
<div id="youtube" style="width: 100%;height: 100%"></div> | |
<div class="controls" style="text-align: center;margin: 0 auto;"> |
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
(function () { | |
var successHandler = function (data) { | |
console.info('Twitter\'s data: %j', data) | |
}; | |
var ErrorHandler = function (error) { | |
console.info('Twitter\'s error:', error) | |
}; | |
$.ajax({ | |
url: 'https://api.twitter.com/1.1/search/tweets.json?q=%23freebandnames&since_id=24012619984051000&max_id=250126199840518145&result_type=mixed&count=4', | |
data: { |
NewerOlder