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
/* Source: http://www.boxofficemojo.com/alltime/world/ */ | |
CREATE TABLE top_movies( | |
rank TEXT NOT NULL PRIMARY KEY | |
, title TEXT | |
, studio TEXT | |
, worldwide TEXT | |
, domestic_money TEXT | |
, domestic_percent TEXT | |
, overseas_money TEXT |
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
// I kept my implementation's external dependencies to only the | |
// core express module and standard node modules | |
express = require('express') | |
crypto = require('crypto') | |
http = require('http') | |
assert = require('assert') | |
app = express() | |
//parse form values | |
app.use(function(req,res,next){ |
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
function parseTimeAmount(stime){ | |
var tokens = stime.split(/\s/); | |
var seconds = 0; | |
for(var i = 0; i < tokens.length; i++){ | |
var quantity = parseFloat(tokens[i]); | |
if(!isNaN(quantity)){ | |
i++; | |
if(/sec/.test(tokens[i])){ | |
seconds+=quantity; | |
}else if(/min/.test(tokens[i])){ |
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
function mparseInt(snum){ | |
console.log(1); | |
snum = $.trim(snum); | |
var tokens = snum.split(/[\s-]+/); | |
// with a 'z' because we are so very street, yo. | |
var holdz = []; | |
for(var i = 0; i < tokens.length; i++){ | |
var token = tokens[i].replace(/-/,'').toLowerCase(); | |
var hold = null; | |
if(token == 'zero' || token == ''){ |
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
super.invokeExplosively(target, input); |