Created
March 4, 2014 04:50
-
-
Save duckinator/9340482 to your computer and use it in GitHub Desktop.
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
../ruby/duckinator/tweetcode$ cat tweetcode.rb | |
require'open-uri';require'htmlentities';open("https://twitter.com/x/status/"+x=$*[0]).read=~/t-text">(.*?)</m;puts HTMLEntities.new.decode$1 | |
../ruby/duckinator/tweetcode$ cat tweetcode.rb|wc -c | |
140 | |
../ruby/duckinator/tweetcode$ ruby tweetcode.rb 440408192833826816 | |
;nasm -fbin a.s;qemu-system-i386 -hdc a | |
org 31744 | |
mov ah,14 | |
mov si,s | |
p:lodsb | |
int 16 | |
cmp al,"i" | |
jnz p | |
s db"Hi" | |
times 510-($-$$) db 0 | |
dw 43605 | |
../ruby/duckinator/tweetcode$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment