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 express = require('express'), | |
app = express(), | |
server = require('http').createServer(app); | |
io = require('socket.io').listen(server), | |
crypto = require('crypto'), | |
uuid = require('node-uuid'), | |
geoip = require('geoip-lite'), | |
storeStats = require('./storeStats.js'), | |
api = require('./api/api-endpoints'); |
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
/** | |
* Modified version of TJ's http support file from the Express repo: | |
* https://github.com/visionmedia/express/blob/master/test/support/http.js | |
* | |
* Module dependencies. | |
*/ | |
var EventEmitter = require('events').EventEmitter | |
, should = require('should') | |
, methods = ['get','post','put','delete','head'] |
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
String details = "7\""; | |
details = details.replace("\""," inch"); | |
System.out.println(details); // 7 inch |
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
//include lo-dash for averaging hover times and loops | |
//include benchmark.js for testing function runtimes | |
//make tags more versatile and use indexOf to see if the tag exists | |
console.time("executeTime"); | |
var StoreStats = (function($, window, document) { | |
"use strict"; | |
var scope = document.querySelectorAll(".storeStats"),$scope = $(scope), | |
socket = io.connect("http://ec2-54-184-116-0.us-west-2.compute.amazonaws.com:3000/"), |
NewerOlder