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
'eval': function(cmd, context, filename, callback){ | |
console.log(cmd); // ONLY FOR DEBUG | |
if (cmd === 'login') { |
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
// CreativeMUD by whiskers75 | |
// Licenced under the GPLv2. | |
var sockets = []; | |
var players = []; | |
var repl = require('repl'); | |
var net = require('net'); | |
var fs = require('fs'); | |
var len = 0; | |
var waiting = 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
// CreativeMUD by whiskers75 | |
// Licenced under the GPLv2. | |
var sockets = []; | |
var redis = require('redis'); | |
var db = redis.createClient(9033, 'sole.redistogo.com'); | |
var players = []; | |
var repl = require('repl'); | |
var net = require('net'); | |
var len = 0; |
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.js:262 | |
}); | |
module.js:437 | |
var compiledWrapper = runInThisContext(wrapper, filename, true); | |
^ | |
SyntaxError: Unexpected end of input |
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
//whiskers75's FightCode Robot | |
//Licenced under the GPLv2 or higher | |
//Forks of this may not battle this robot. | |
var Robot = function(robot) { | |
robot.log("whiskers75's robot initialized"); | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; |
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
info: Welcome to Nodejitsu whiskchat | |
info: jitsu v0.13.2, node v0.10.20 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server.js | |
info: Checking app availability whiskchat-server | |
info: Creating app whiskchat-server | |
info: Creating snapshot 1.0.2-3 | |
info Uploading: [=============================] 100% | |
error: Error running command deploy |
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 $A(iterable) { | |
if (!iterable) return []; | |
if ("toArray" in Object(iterable)) return iterable.toArray(); | |
for (var length = iterable.length || 0, results = new Array(length); length--;) results[length] = iterable[length]; | |
return results | |
} | |
function $w(string) { | |
return Object.isString(string) ? (string = string.strip(), string ? string.split(/\s+/) : []) : [] | |
} |
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
info: Welcome to Nodejitsu whiskchat | |
info: jitsu v0.13.2, node v0.10.20 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server.js | |
debug: { method: 'GET', | |
debug: uri: 'https://api.nodejitsu.com/apps/whiskchat/whiskchat-server', | |
debug: headers: | |
debug: { Authorization: '*********************************************************************', | |
debug: 'Content-Type': 'application/json' }, |
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
(defun proper-backspace (&optional arg) | |
"Backspace nicely WITHOUT using the kill ring." | |
(interactive "p") | |
(backward-char) | |
(delete-char 1)) | |
(global-set-key [backspace] 'proper-backspace) |
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
Villager = require('./villager.js') | |
util = require('util') | |
Seer = (Wolfgame) -> | |
this.toString = () -> return 'seer' | |
this.acted = false | |
this.canAct = true | |
this.description = 'You can see one person per night, and reveal their role.' | |
this.act = (player) -> | |
if Wolfgame.autocomplete(player) | |
player = Wolfgame.autocomplete(player) |
OlderNewer