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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <oauth.h> | |
int main(int argc, char **argv) | |
{ | |
char *consumer_key = "*********************"; | |
char *consumer_secret = "******************************************"; | |
char *access_token = "********-*****************************************"; |
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
#include <iostream> | |
using namespace std; | |
namespace vtstring { | |
// 文字列を表す可変引数テンプレート | |
template <char... a> struct vtstring; | |
template <char a, char... b> | |
struct vtstring<a, b...> | |
{ |
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, |
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
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
#!/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
<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
<!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
javascript:window.open('http://localhost/utils/chrome2phone.cgi?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href),%20'_blank',%20'width=200,height=100');undefined; |
OlderNewer