This file contains hidden or 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 http = require('http'), | |
url = require('url'), | |
qs = require('querystring'); | |
var paths = { | |
'__default__': function (req, res) { | |
console.log('noop'); | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end(); | |
}, |
This file contains hidden or 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 set-frame-size-according-to-resolution () | |
(interactive) | |
(if window-system | |
(progn | |
;; use 180 char wide window for largeish displays | |
;; and smaller 80 column windows for smaller displays | |
;; pick whatever numbers make sense for you | |
(if (> (x-display-pixel-width) 1280) | |
(add-to-list 'default-frame-alist (cons 'width 180)) | |
(add-to-list 'default-frame-alist (cons 'width 80))) |
This file contains hidden or 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($, window, document, undefined){ | |
//handy log function | |
window.log = function(){ | |
log.history = log.history || []; | |
log.history.push(arguments); | |
if(this.console) | |
console.log( Array.prototype.slice.call(arguments) ); | |
}; | |
$.extend($.expr[':'], { |
NewerOlder