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
'use strict'; | |
//---------------------------------Array of k arrays ---------------------------------------- | |
var kArrays = []; | |
var calcRandN = function () { | |
return Math.floor(Math.random() * 100); //returns random number less than 100 | |
} |
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
'use strict'; | |
var Sequelize = require('sequelize'); | |
module.exports = function (sequelize, DataTypes) { | |
var Employer = sequelize.define("Employer", { | |
username: DataTypes.STRING, | |
password: DataTypes.STRING | |
}); | |
return { |
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
'use strict'; | |
var http = require("http"); | |
var url = require("url"); | |
function start(route, handle) { | |
function onRequest(request, response) { | |
if (typeof(handle[request.url]) === 'function') { | |
var pathname = url.parse(request.url).pathname; | |
console.log("Request for " + pathname + " received."); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <math.h> | |
void process(char * str); // calls the process fxn and passes str | |
long interpret(long scope, long first, long last); | |
#define eps 1e-6 |
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 board, currentPlayer; | |
var resetBoard = function () { | |
board = [ | |
[' X ', 'wht', ' X ', 'wht', ' X ', 'wht', ' X ', 'wht'], | |
['wht', ' X ', 'wht', ' X ', 'wht', ' X ', 'wht', ' X '], | |
[' X ', 'wht', ' X ', 'wht', ' X ', 'wht', ' X ', 'wht'], | |
[' X ', ' X ', ' X ', ' X ', ' X ', ' X ', ' X ', ' X '], | |
[' X ', ' X ', ' X ', ' X ', ' X ', ' X ', ' X ', ' X '], | |
['red', ' X ', 'red', ' X ', 'red', ' X ', 'red', ' X '], |