This file contains 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 gulp = require('gulp') | |
var browserify = require('browserify') | |
var watchify = require('watchify') | |
var babelify = require('babelify') | |
var source = require('vinyl-source-stream') | |
var buffer = require('vinyl-buffer') | |
var merge = require('utils-merge') |
This file contains 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'); | |
var app = express(); | |
var port = process.env.PORT || 8080; | |
app.set('view engine', 'ejs'); | |
app.all("/*", function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); |
This file contains 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__ = 'httpnick' | |
from socketIO_client import SocketIO, LoggingNamespace | |
def getInHereResponse(*args): | |
print(args[0]) | |
def getConnectionResponse(*args): | |
print('connection count: ' + str(args[0])) | |
def getStatsResponse(*args): |
This file contains 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
/** | |
* Created by httpnick on 4/4/15. | |
*/ | |
/** | |
* Created by httpnick on 3/20/15. | |
*/ | |
var express = require('express'); | |
var app = express(); | |
var port = 8888; |
This file contains 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__ = 'httpnick' | |
import praw | |
from socketIO_client import SocketIO, LoggingNamespace | |
user_exists_in_db = false | |
def getInHereResponse(*args): | |
if (args[0]): | |
user_exists_in_db = true | |
else: |
This file contains 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__ = 'httpnick' | |
from socketIO_client import SocketIO, LoggingNamespace | |
def getInHereResponse(*args): | |
print(args[0]) | |
def getConnectionResponse(*args): | |
print('connection count: ' + str(args[0])) | |
socketIO = SocketIO('localhost', 8888, LoggingNamespace) |
This file contains 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
/** | |
* Created by httpnick on 3/20/15. | |
*/ | |
var express = require('express'); | |
var app = express(); | |
var port = 8888; | |
var dbURL = "localhost:27017/test_reddit_database"; | |
var collections = ["user_test"]; | |
var db = require("mongojs").connect(dbURL, collections); |