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
#!/usr/bin/env ruby | |
$LOAD_PATH << 'lib' | |
$LOAD_PATH << '../lib' | |
require 'optparse' | |
require 'uri' | |
require 'rubygems' | |
require 'daemons' |
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
# | |
# weechat plugin | |
# | |
def weechat_init | |
Weechat.register( | |
'all', | |
'halt', | |
'0.3', | |
'GPL3', |
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
puts "Test start" | |
puts "Create thread" | |
message = ARGV[0] ||= '0' | |
begin | |
t = Thread.new do | |
puts "Start thread" | |
begin | |
raise "chatched" |
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
<?php | |
/** | |
* | |
* | |
*/ | |
date_default_timezone_set('Asia/Tokyo'); | |
$csv = array(); | |
foreach (glob('report_kpi_*') as $filename) { | |
$lines = file($filename); |
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 putTime() | |
{ | |
d=new Date(); | |
h=d.getHours(); | |
if(h<5){document.write("真夜中ですな。テレホ入ってますか?");} | |
else if(h<11){document.write("おっはよーございます。おげんきですか?");} | |
else if(h<15){document.write("お昼。ご飯食べた?");} | |
else if(h<16){document.write("3時。おやつちょうだいです。");} | |
else if(h<19){document.write("もう暗くなってきたね。");} |
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
<?php | |
/** | |
* streamの変化を調べる | |
* @url http://zion009.blog98.fc2.com/blog-entry-36.html | |
*/ | |
$src = $argv[1]; | |
$temp_file = '/tmp/tmp.mp4'; | |
$temp_text = '/tmp/tmp.text'; |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* しょぼいカレンダーを使ってアニメタイトルをファイル名にする | |
* @url https://sites.google.com/site/syobocal/spec/rss2-php | |
*/ | |
//$word = '戦姫絶唱シンフォギア_20120113_225900.ts'; | |
$user_id = 'anime_rename'; |
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
"" | |
" map disable cursor key | |
" | |
set ttimeout | |
set timeout | |
set ttimeoutlen=0 | |
set timeoutlen=0 | |
map <ESC>OA <ESC> | |
map <ESC>OB <ESC> | |
map <ESC>OC <ESC> |
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
<?php | |
/** | |
* | |
* @url http://blog.maripo.org/2011/05/facebook-%E3%82%A2%E3%83%97%E3%83%AA%E3%81%A4%E3%81%8F%E3%82%8D%E3%81%86%E3%81%9C-%E3%81%9D%E3%81%AE8-%E3%83%86%E3%82%B9%E3%83%88%E3%83%A6%E3%83%BC%E3%82%B6%E3%82%92%E4%BD%9C%E3%82%89%E3%81%AA/ | |
* @url http://developers.facebook.com/docs/test_users/ | |
*/ | |
$APP_ID = ''; | |
$APP_SECRET = ''; | |
$SITE_URL = ''; |
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
"" | |
" wassr-todo.vim | |
" | |
scriptencoding utf-8 | |
"let g:wassr_user = "your id" | |
"let g:wassr_pass = "your pass" | |
function! WassrTODOList() | |
let json = s:GetJson("http://" . g:wassr_user . ":" . g:wassr_pass . "@api.wassr.jp/todo/list.json") |
OlderNewer