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
$ git clone git://github.com/visionmedia/express.git | |
Initialized empty Git repository in /home/gsf/git/express/.git/ | |
remote: Counting objects: 5043, done. | |
remote: Compressing objects: 100% (2059/2059), done. | |
remote: Total 5043 (delta 3006), reused 4923 (delta 2898) | |
Receiving objects: 100% (5043/5043), 637.16 KiB, done. | |
Resolving deltas: 100% (3006/3006), done. | |
$ cd express/ | |
$ grep -rl posix . | |
./spec/node.js |
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
// name, attrs, content, callback | |
libxml.Element.Arguments = function(args) { | |
var ret_args = null; | |
switch (args.length) { | |
case 1: | |
ret_args = [args[0], null, null, null]; | |
break; | |
case 2: // name, callback; name, attrs; name, content |
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
node> var id = []; | |
[] | |
node> id.constructor | |
[Function] | |
node> id.constructor.toString() | |
'function Array() { [native code] }' | |
node> id.constructor === Array | |
true | |
node> |
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
if (idx == 0) { | |
$('element').addClass('bob'); | |
return '#nav-print a'; | |
} |
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
class RowDict(dict): | |
""" | |
Subclass of dict that joins sequences and encodes to utf-8 on get. | |
Encoding to utf-8 is necessary for Python's csv library because it | |
can't handle unicode. | |
>>> row = RowDict() | |
>>> row['bob'] = ['Montalb\\xe2an, Ricardo', 'Roddenberry, Gene'] | |
>>> row.get('bob') | |
'Montalb\\xc3\\xa1n, Ricardo|Roddenberry, Gene' | |
>>> print row.get('bob') |
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
if has("autocmd") | |
filetype plugin indent on | |
endif | |
set expandtab | |
set hidden | |
set incsearch | |
set noshowmatch | |
set showcmd | |
set smartcase |
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
// possible ideal for handling sanitation districts | |
var address = $('#addressInput').val(); | |
phl.sanDis(address, function(districts) { | |
$.each(districts, function(index, value) { | |
$('ul').append('<li>'+value+'</li>'); | |
}); | |
}); |
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 2011-06-21T05:40:56 supybot Reconnecting to freenode at 2011-06-21T05:45:56. | |
WARNING 2011-06-21T05:40:56 supybot Scheduling a second reconnect when one is already scheduled. This | |
is a bug; please report it, with an explanation of what caused this to happen. | |
WARNING 2011-06-21T05:40:56 supybot Disconnect from verne.freenode.net:6667: error: [Errno 32] Broken | |
pipe. | |
INFO 2011-06-21T05:40:56 supybot Reconnecting to freenode at 2011-06-21T05:45:56. | |
WARNING 2011-06-21T05:40:56 supybot Scheduling a second reconnect when one is already scheduled. This | |
is a bug; please report it, with an explanation of what caused this to happen. | |
WARNING 2011-06-21T05:40:56 supybot Disconnect from verne.freenode.net:6667: error: [Errno 32] Broken | |
pipe. |
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 crypto = require('crypto'); | |
var http = require('http'); | |
var querystring = require('querystring'); | |
var url = require('url'); | |
var util = require('util'); | |
var accessID = 'xxxxx'; | |
var key = 'xxxxxxxxxx'; | |
var host = 'api.summon.serialssolutions.com'; | |
var summon = http.createClient(80, host); |
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
# the function below is called because it is followed by a space and a parameter | |
robot.load scriptsPath | |
# the function below will not be called | |
robot.run | |
# it must look like this | |
robot.run() | |
# i'd rather have a few more parentheses than this brain-jarring inconsistency |
OlderNewer