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
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
Element.observe(window,'load', function() { | |
FB_RequireFeatures(["XFBML"], function() { | |
FB.Facebook.init('XXXXXXXX','/xd_receiver.html'); | |
var all_spans = document.getElementsByTagName("span"); | |
var i = 0; | |
for (i=0; i<all_spans.length; i++) { |
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
<script type="text/javascript> | |
var has_fb_session = <%= !!facebook_session %>; | |
</script> |
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
<div id="fb-root"></div> | |
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
apiKey : 'APIKEY', | |
status : true, // check login status | |
cookie : true, // enable cookies to allow the server to access the session | |
xfbml : true // parse XFBML | |
}); | |
}; |
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
// Google Closure Compiler examples | |
// Malformed JS | |
var foo = { | |
attrib1: 'foo', | |
attrib2: 'bar', // <--- trailing comma | |
} | |
// RESULT: | |
// [vincentc@local bad_js]$ gjs --js bad_js.js | |
// bad_js.js:8: ERROR - Parse error. Internet Explorer has a non-standard intepretation of trailing commas. Arrays will have the wrong length and objects will not parse at all. |
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
{ | |
"id":"T8v", | |
"type":"png", | |
"timestamp":"Wed Jun 02 13:19:29 -0700 2010", | |
"text":"message", | |
"url":"http://post.ly/T8v", | |
"height":211, | |
"width":165, | |
"size":66, | |
"user":{ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<image> | |
<id>T8w</id> | |
<text>message at Wed Jun 02 13:23:02 -0700 2010</text> | |
<url>http://post.ly/T8w</url> | |
<width>165</width> | |
<height>211</height> | |
<size>66</size> | |
<type>png</type> | |
<timestamp>Wed Jun 02 13:23:07 -0700 2010</timestamp> |
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
curl -v -H 'X-Auth-Service-Provider: https://api.twitter.com/1/account/verify_credentials.json' | |
-H 'X-Verify-Credentials-Authorization: OAuth oauth_nonce="gMfO3YKSNBt5w8s1gQ9TnUQ1Ji219gYFq5VovyC1Y0", oauth_callback="http%3A%2F%2Fposterous.com%2Foauth%2Fcallback", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1273511181", oauth_consumer_key="STWUDG4OpJhxrEnLZ1uQ4g", oauth_token="21465735-lwKdG1iDzWhTFjiCdlddrmcslMNllHZUd5SPY1xMo", oauth_signature="1sYBtfLl%2EBLXkg655gYNLalXOP0%3D", oauth_version="1.0"' -F "key=2b38a676d9b58d1d44da0db832512a1f" | |
-F "media=@/path/to/some/image.jpg" | |
-F "message=message" http://posterous.com/api2/upload.xml |
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
1277854174: Built 520f3b0: status=1 | |
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:55: command not found: sh .git/hooks/build-failed | |
remote: Counting objects: 47, done. | |
remote: Compressing objects: 100% (29/29), done. | |
remote: Total 29 (delta 23), reused 0 (delta 0) | |
Unpacking objects: 100% (29/29), done. | |
From [email protected]:garrytan/posterous | |
520f3b0..f6e1652 master -> origin/master | |
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:55: command not found: sh .git/hooks/after-reset | |
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:55: command not found: cd /home/posterous/posterous && git config cijoe.branch 2>&1 |
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
irb(main):021:0> ENV | |
=> {"SHELL"=>"/bin/bash", "TERM"=>"screen", "SSH_CLIENT"=>"24.5.83.171 51266 22", "SSH_TTY"=>"/dev/pts/7", "USER"=>"posterous", "LS_COLORS"=>"no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01 |
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
length = 260240 | |
puts "length = #{length}" | |
ENV["FOO"] = "a" * length | |
ls_out = `ls` | |
puts "length = #{ls_out.length} - #{ls_out}" |