Skip to content

Instantly share code, notes, and snippets.

View kan's full-sized avatar

Kan Fushihara kan

View GitHub Profile
@kan
kan / search_history.js
Last active October 7, 2016 06:38 — forked from azu/switchViewedSearches.js
検索結果のタブを一覧表示するタブを作るtwicli plugin
/* twicli plugin (http://twicli.neocat.jp/)
* search_history.js
* 検索結果を保持して再利用可能に
* https://goo.gl/qPHfx6
*/
var tws_history = (readCookie('twicli_search_history') || "").split(/\r?\n/);
tws_history.uniq();
registerPlugin({
@kan
kan / clip.pl
Created April 12, 2013 09:08 — forked from anonymous/clip.pl
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Mac::Pasteboard;
my $pb = Mac::Pasteboard->new();
my $text = '';
@kan
kan / gist:5027250
Last active December 14, 2015 04:19 — forked from kazuho/gist:5027236

#MessagePackの文字列型追加において、Extended型を導入する提案

本提案は https://gist.github.com/frsyuki/5022569 https://gist.github.com/frsyuki/5022460 において提案された「バイナリ型」の構造に変更を施すものである。

##解決しようとする問題

  • MessagePackへの拡張は今後行われないとしても、独自に拡張する提案が今後頻発しそう
  • 拡張フォーマットは、既存のMessagePackに対して後方互換にならない(なりようがない)ため、相互運用性を損なう可能性が高い

##提案する手法

@kan
kan / bench.pl
Created February 23, 2013 07:16 — forked from anonymous/bench.pl
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Benchmark 'cmpthese';
use Data::Riak;
use Data::Riak::Fast;
use Net::Riak;