Skip to content

Instantly share code, notes, and snippets.

$ wget -S -O - --header "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1" https://t.co/LU2a1lv
--2011-08-20 20:50:00-- https://t.co/LU2a1lv
Resolving t.co... 199.59.148.12
Connecting to t.co|199.59.148.12|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Sun, 21 Aug 2011 03:50:01 GMT
Server: hi
window.qts = window.qts || {};
(function() {
// blah blah
})();
var url = "http://clientsite.localhost.com:8888/dist/server/xd_receiver.js";
if (document.location.host == 'api.twitter.com') {
url = "https://twitter-any.s3.amazonaws.com/server/production/xd_receiver.js";
}
// if (document.location.host.match(/^api-staging/)) {
// url = "https://twitter-any.s3.amazonaws.com/server/staging/xd_receiver.js";
// }
document.write('<script src="' + url + '"><\/script>');
$(window).scroll(function() {
didScroll = true
});
setInterval(function() {
if (didScroll) {
didScroll = false;
if (!fetchingMore && !scrolledToEnd) {
var pixelsFromBottom = 0 + $(document).height() - $(window).scrollTop() - $(window).height();
if (pixelsFromBottom < 500) fetchMore()
}
Array.prototype.map = function(func /* thisObject */) {
if (typeof func !== "function") {
throw new TypeError();
}
var len = this.length;
var res = new Array(len);
var thisObject = arguments[1];
for (var i = 0; i < len; i++) {
if (i in this) {
ls -1 -v ~/versions/
010.0.0.1.txt
010.00.0.1.txt
10.0.0.1.txt
10.0.1.1.txt
10.0.2.1.txt
010.01.0.1.txt
10.1.1.1.txt
10.01.02.1.txt
10.2.2.1.txt
[
{"value": "ap014bc367ddb8032b",
"label": "Hoge"},
{"value": "ap014bc366f4a2032b",
"label": "Gaga"},
{"value": "ap014bd1c3331d033d",
"label": "Foo"}
]
kermit -l /dev/ttyUSB0 -b 9600
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/sekimura/Dev/) C-Kermit>set terminal cr-display crlf
(/home/sekimura/Dev/) C-Kermit>set terminal newline-mode on
(/home/sekimura/Dev/) C-Kermit>set terminal echo local
(/home/sekimura/Dev/) C-Kermit>set carrier-watch off
(/home/sekimura/Dev/) C-Kermit>connect
import json
import requests
import urllib
import re
import sys
import os.path
import argparse
import gevent
from gevent import monkey
-lstat("/home/sekimura/Dev/sink-test/boolean.js", {st_mode=S_IFREG|0644, st_size=37, ...}) = 0
-open("/home/sekimura/Dev/sink-test/boolean.js", O_RDONLY) = 5
+lstat("/home/sekimura/Dev/sink-test/statement.js", {st_mode=S_IFREG|0644, st_size=38, ...}) = 0
+open("/home/sekimura/Dev/sink-test/statement.js", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
-read(5, "!function(){console.log('A')}(th"..., 4048) = 37
+read(5, "(function(){console.log('A')})(t"..., 4048) = 38
read(5, "", 4048) = 0
close(5) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0