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
function easyWakati(str, key) { | |
var reg_list = { | |
'ratin' : '\u0000-\u007F', | |
'kanji' : '\u4E00-\u9FFF\u3400-\u4DBF\u20000-\u2A6DF\u2A700-\u2B73F\u2B740-\u2B81F\uF900-\uFAFF\u2F800-\u2FA1D\u3190-\u319F\u2E80-\u2EFF\u2F00-\u2FDF\u31C0-\u31EF', | |
'hiragana' : '\u3040-\u309F', | |
'katakana' : '\u30A0-\u30FF\u31F0-\u31FF\u1B000-\u1B0FF\uFF65-\uFF9F', | |
'zen_ascii' : '\uFF00-\uFFEF' | |
}; | |
var other = []; | |
for( var k in reg_list ) { |
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
<?php | |
function fetchUrl( $url, $gzip = false ) { | |
$raw = file_get_contents( $url, false, $context = stream_context_create( array( | |
'http' => array( | |
'method' => 'GET', | |
'header' => 'Accept-Encoding:' . ( $gzip ? 'gzip,deflate' : 'identity' ) . "\r\n", | |
) | |
) ) ); | |
if ( $raw === false ) { |
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
<?php | |
$src = 'こんにちは、私の名前はホゲホゲです。ツイッターやってます!https://twitter.com/hogehoge'; | |
$pattern = '/' . implode( '|', array( | |
'[\x{2E80}-\x{2FDF}\x{3005}\x{3007}\x{3021}-\x{3029}\x{3038}-\x{303B}\x{3400}-\x{4DBF}\x{4E00}-\x{9FFF}\x{F900}-\x{FAFF}\x{20000}-\x{2FFFF}]+', | |
'[\x{3041}-\x{309F}\x{31F0}-\x{31FF}\x{1B000}\x{1B001}]+', | |
'[\x{30A0}-\x{30FF}\x{FF65}-\x{FF9F}]+', | |
'[\x{FF10}-\x{FF19}\x{FF21}-\x{FF3A}\x{FF41}-\x{FF5A}]+', | |
'[\x{0020}-\x{007D}\x{203E}\s\r\n\t]+', | |
'[^\x{0020}-\x{007D}\x{203E}\s\r\n\t\x{FF10}-\x{FF19}\x{FF21}-\x{FF3A}\x{FF41}-\x{FF5A}\x{30A0}-\x{30FF}\x{FF65}-\x{FF9F}\x{3041}-\x{309F}\x{31F0}-\x{31FF}\x{1B000}\x{1B001}\x{2E80}-\x{2FDF}\x{3005}\x{3007}\x{3021}-\x{3029}\x{3038}-\x{303B}\x{3400}-\x{4DBF}\x{4E00}-\x{9FFF}\x{F900}-\x{FAFF}\x{20000}-\x{2FFFF}]+', | |
) ) . '/us'; |
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
<?php | |
// via: https://github.com/themattharris/tmhOAuth | |
require_once './tmhOAuth/tmhOAuth.php'; | |
$obj = new tmhOAuth( array( | |
'consumer_key' => '****', | |
'consumer_secret' => '****', | |
'user_token' => '****', | |
'user_secret' => '****', |
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
// ccctest.js | |
$(function(){ | |
var CACHE = null; | |
$("#ccctest").bind( 'copy', function(){ | |
var copyText = $.selection(); | |
// 連続コピペ対策 |
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
<?php | |
function kusodebug(){ | |
echo '<xmp>', var_dump( func_get_args() ), "</xmp>\n"; | |
} |
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
<?php | |
/** | |
* Twitpic.php | |
*/ | |
/** | |
* Twitpic | |
* @author mgng | |
*/ | |
class Twitpic |
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
*長いですので、そこんとこすいません* | |
「川越達也の店行きたい」 | |
そんなことを急に姉が叫びだしたので、速攻そういう役目(我が家の予約係)のあたしが電話をしました”Tatsuya Kawagoe” | |
電話をしたのはそうですね、あれは5月だったと思われます。 | |
そして行ったのは9月.... | |
4ヶ月待ち.... |
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
{ | |
"manifest_version": 2, | |
"name" : "meta refresh blocker", | |
"version" : "0.1", | |
"description" : "meta refresh タグを無効にする拡張です。", | |
"content_scripts" : [{ | |
"matches" : ["*://*/*"], | |
"run_at" : "document_idle", | |
"all_frames" : true, | |
"js" : [ "metarefreshblocker.js" ] |
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
00 wav | |
01 素mp3 (CBR) | |
lame --cbr -b 128 00.wav 01.mp3 | |
02 素mp3 (VBR) | |
lame -v 00.wav 02.mp3 | |
03 素mp3 (ABR) | |
lame --abr 128 00.wav 03.mp3 |