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
Accept:application/json, text/javascript, */*; q=0.01 | |
Cache-Control:max-age=0 | |
Content-Type:application/json | |
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/10.04 Chromium/11.0.696.68 Chrome/11.0.696.68 Safari/534.24 | |
X-Requested-With:XMLHttpRequest |
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
npm ERR! Error sending version data | |
npm ERR! Error: forbidden _npmUser field must be object | |
npm ERR! (You probably need to upgrade your npm version): sprintf/0.1.2/-tag/latest | |
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:180:12) | |
npm ERR! at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:99:22) | |
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:361:18) | |
npm ERR! at Request.emit (events.js:64:17) | |
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:327:16) | |
npm ERR! at IncomingMessage.emit (events.js:81:20) | |
npm ERR! at HTTPParser.onMessageComplete (http.js:133:23) |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, formidable = require("formidable"); | |
var config = require("./config"); |
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 good_char_min_stat_threshold = 0; | |
var good_char_max_stat_threshold = 25; | |
var enemy_easy_peasy_multiplier = 1.75; // if you get a 25 stat char and set this to 1.8 your char will be too much of a pussy to fight anything and just endlessly explore the sewer. if that's up your alley, go ahead. | |
var max_fps = 10; | |
var visit_amounts_to_assume_encountered_all = 15; | |
var pause = false; |
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 test = setInterval(function () { | |
var a = 1; | |
}, 33.3); // the only difference is not using a float here. This file uses about 21% cpu on my vps |
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
Server listening on 3020 | |
closing |
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 someResourcePromise = sometingAsync.get('someResource'); // this returns a promise which when resolved will return an object { more: { id: 123 } } | |
var doSomethingAsyncWithResult = function (id) { | |
return somethingAsync.get('moreResources', id); | |
} | |
someResourcePromise.then(doSomethingAsyncWithResult); // of course doenst work becuase the actual id would be in id.more.id | |
// is there some way in Q instead of then() to basically extract a property from a previous fulfillment? | |
// maybe like |
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
let foo: null | string = null; | |
function setFoo(newFoo = 'bar') { | |
foo = 'baz' + newFoo; | |
} | |
setFoo(); | |
console.log(foo.match('ba')); |
OlderNewer