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
// expresso | |
// this worked fine in 0.4.x | |
// but with node 0.6.0 results in: | |
// uncaught undefined: Error: connect ECONNREFUSED | |
// at errnoException (net.js:614:11) | |
// at Object.afterConnect [as oncomplete] (net.js:605:18) |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | |
<script> | |
$(function() { | |
var SLOT_COUNT = 5, | |
SLOT_WIDTH = 210, // css must match | |
SLOT_HALF_WIDTH = SLOT_WIDTH/2, | |
$xreorder = $('#xreorder').css('width',SLOT_WIDTH*SLOT_COUNT); |
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 SECRETS = { | |
consumer_key: 'xxxxxxx', | |
consumer_secret: 'xxxxxxx', | |
access_token: 'xxxxxxx', | |
access_token_secret: 'xxxxxxx' | |
}; | |
var OAuth = require('oauth').OAuth, | |
oa = new OAuth(null, null, SECRETS.consumer_key, SECRETS.consumer_secret, "1.0A", null, "HMAC-SHA1"), | |
start, request, counter; |
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
#!/usr/bin/env ruby | |
BRANCHES = [] | |
`git branch`.each_line do |line| | |
branch = line.gsub(/[^\w]/, '') | |
if line[0]==42 | |
STARTED_ON_BRANCH = branch | |
end | |
BRANCHES << branch | |
end |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Stealth Tweets with Unicode</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.0.0/build/cssreset/reset-min.css&3.0.0/build/cssfonts/fonts-min.css" /> | |
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script> | |
<script> | |
YUI().use('node',function(Y) { | |
NewerOlder