This file contains hidden or 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> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Google+ API Test</title> | |
</head> | |
<body> | |
<button onclick="authBegin()">Login</button><br> | |
<button onclick="getPublicActivities($('user').value)">Get activities of user </button><input id="user" size="10" value="me"><br> |
This file contains hidden or 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
.tw-parent > div > div { width: 400px; float: left; } | |
#tw { left:0; } | |
#re { left:402px; } | |
#tw2 {left:804px; } | |
#menu { left: 804px; } | |
.tw-parent, #tw2 { width: 400px; height: 92%; overflow: scroll; display: block !important; } | |
a#TL, a#reply { display: none; } |
This file contains hidden or 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
javascript:window.open('http://localhost/utils/chrome2phone.cgi?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href),%20'_blank',%20'width=200,height=100');undefined; |
This file contains hidden or 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> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>last.fm API test</title> | |
<script> | |
var api_key = '0809689c938abf942a0d980ff25b5689'; | |
var api_url = "http://ws.audioscrobbler.com/2.0/?method=artist.gettoptracks&api_key="+api_key+"&format=json&autocorrect=1&artist="; | |
function $(id) { return document.getElementById(id); } |
This file contains hidden or 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
<html> | |
<head> | |
<script> | |
function test() { | |
var ifr = document.createElement("iframe"); | |
document.body.appendChild(ifr); | |
ifr.onload = function(){ document.getElementById("log").innerHTML += "onload " } | |
ifr.contentWindow.document.write(''); | |
ifr.contentWindow.document.close(); | |
}; |
This file contains hidden or 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/ruby | |
require 'pty' | |
Signal.trap(:CHLD, 'IGNORE') | |
system "stty raw -echo 2> /dev/null" | |
p = PTY.spawn '/bin/sh' | |
until p[0].closed? || STDIN.closed? | |
s = IO.select [p[0], STDIN] |
This file contains hidden or 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
javascript:void(window.open('http://twicli.neocat.jp/twicli.html?status="'+encodeURIComponent(document.title)+'":%20'+location.href,'twicli')) |
This file contains hidden or 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 chirp_cnt = 0; | |
function update() { | |
if (!myname) return auth(); | |
callPlugins("update"); | |
if (chirp_cnt++ == 0) | |
update_ele = loadXDomainScript(twitterAPI + 'statuses/home_timeline.json' + | |
'?count=' + (since_id ? 200 : max_count) + | |
'&suppress_response_codes=true&callback=twShow', update_ele); | |
else | |
update_ele = loadXDomainScript('http://localhost:10080/?seq='+ (seq++) + |
This file contains hidden or 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
require 'oauth' | |
request = OAuth::RequestProxy.proxy( | |
"method" => 'GET', | |
"uri" => 'https://betastream.twitter.com/2b/user.json', | |
"parameters" => { | |
"oauth_consumer_key" => "******************", | |
"oauth_token" => "***-******************", | |
"oauth_nonce" => OAuth::Helper.generate_key, | |
"oauth_timestamp" => OAuth::Helper.generate_timestamp, |