Skip to content

Instantly share code, notes, and snippets.

View whiskers75's full-sized avatar

whiskers75 whiskers75

View GitHub Profile
var util = require('util'),
colors = require('colors'),
read = require('read'),
id = 0,
user = {};
twitter = require('twitter');
var twit = new twitter({
consumer_key: 'your key here',
consumer_secret: 'your key here',
access_token_key: 'your key here',
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)
@whiskers75
whiskers75 / gist:7228655
Created October 30, 2013 07:49
How to make Emacs work with backspaces
(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)
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' },
@whiskers75
whiskers75 / safebyte
Last active December 24, 2015 18:19
Safebyte.com source code - modified to ACTUALLY WORK WITH CHROME
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+/) : []) : []
}
@whiskers75
whiskers75 / gist:6841449
Created October 5, 2013 14:16
nodejitsu failing
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
@whiskers75
whiskers75 / whiskers75 FightCode
Created January 9, 2013 19:30
FightCode bot whiskers75
//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;
server.js:262
});
module.js:437
var compiledWrapper = runInThisContext(wrapper, filename, true);
^
SyntaxError: Unexpected end of input
// 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;
// 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;