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
--- | |
:consumer_key: consumer_key | |
:consumer_secret: consumer_secret | |
:oauth_token: oauth_token | |
:oauth_token_secret: oauth_token_secret |
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
/* | |
Azurea 1.3.2.ColorLabelPreviewを利用してカラーラベルを利用するためのサポートスクリプト | |
ColorLabelPreviewとセットで使用してください。 | |
http://refy.net/temp/Azurea.1.3.2.ColorLabelPreview.1.i386.exe | |
http://refy.net/temp/Azurea.1.3.2.ColorLabelPreview.1.ARMv5T.exe | |
使用方法 | |
Scripts\以下に任意のファイル名で保存 | |
テキストエリアからsetcolor(screen_name,colorcode)とPostする | |
screen_nameはカラーラベルを設定したいユーザのスクリーンネーム、 |
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
/* | |
* Underscore.js plugin | |
* http://documentcloud.github.com/underscore/ | |
*/ | |
(function(){ | |
var root = this; | |
var console = root.console; | |
var optionsTable = {}; | |
var setResultTable = {}; | |
var lib = {}; |
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
/* | |
選択されたユーザのホームからPost数を探してきて表示してみる API版(Require API Level:5-) | |
*/ | |
System.addContextMenuHandler('Get tweets count', 0, function(id){ | |
var st = TwitterService.status.get(id); | |
var xml = TwitterService.call('/users/show/' + st.user.screen_name + '.xml'); | |
if(xml.match('<statuses_count>(\\d+)</statuses_count>')){ | |
System.showNotice("@" + st.user.screen_name + "'s total tweets: " + RegExp.$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
// オレオレ性能測定 | |
#include "xor128.hpp" | |
// ローパスフィルタ | |
// 結果のランダムな性質を少し和らげて、より正確な処理ができるよう(気休めレベルですが) | |
struct LPF | |
{ | |
typedef double result_type; | |
explicit LPF( double x0 = 0 ) | |
: x_(x0), y_(x0) {} |
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
function doHash(str, seed) { | |
var m = 0x5bd1e995; | |
var r = 24; | |
var h = seed ^ str.length; | |
var length = str.length; | |
var currentIndex = 0; | |
while (length >= 4) { | |
var k = UInt32(str, currentIndex); | |
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
javascript:(function(){ | |
var hintkeys = 'asdfghjkl'; | |
function createText(num) { | |
var text = '', l = hintkeys.length, iter = 0; | |
while (num >= 0) { | |
var n = num; | |
num -= Math.pow(l, 1 + iter++); | |
} | |
for (var i = 0; i < iter; i++) { | |
r = n % l; |
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
require "nestful" | |
require "roauth" | |
def upload(path_to_file) | |
twitpic_key = "my_twitpic_api_key" | |
oauth_url = "https://api.twitter.com/1/account/verify_credentials.json" | |
oauth = { | |
:access_key => "account_access_key", | |
:access_secret => "account_access_secret", |
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
require 'twitter_oauth' | |
print 'Consumer Key> ' | |
consumer_key = gets.chomp | |
print 'Consumer Secret> ' | |
consumer_secret = gets.chomp | |
t = TwitterOAuth::Client.new( | |
:consumer_key => consumer_key, |
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
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |