https://convexlevel.html.xdomain.jp
- 新曲(Primitive Accumulation III) https://twitter.com/ryobotnotabot/status/1194596812880896001
- Human Reciever
- 新曲(ブレイクするやつ)
- ashy sleep(灰の中のトカゲ)
- 新曲(ジョージハリスン)
| <script type="text/javascript" src="chimpo.js"></script> | |
| <button onclick="chimpo()">「ちんぽ」表示</button> |
https://convexlevel.html.xdomain.jp
| rem -------------------------------------------------------- | |
| rem Echofon for Firefox の sqlite をお掃除するバッチ | |
| rem -------------------------------------------------------- | |
| @echo off | |
| echo *** 実行するよー | |
| pause | |
| setlocal |
| <?php | |
| $blob = getResizedImageBlob("./sample.png", 100, 200); | |
| file_put_contents("sample_100x200.png", $blob); | |
| /** | |
| * @param string $img_path 画像ファイルパス | |
| * @param string int $w_re リサイズ後の幅 | |
| * @param string int $h_re リサイズ後の高さ | |
| * @return string |
| <?php | |
| function check($s){ | |
| return strlen($s) !== strlen(mb_convert_encoding(mb_convert_encoding($s,'SJIS','UTF-8'),'UTF-8','SJIS')); | |
| } |
| <?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 ) { |
| <?php | |
| $prefix = 'TEST:'; | |
| $redis = new Redis(); | |
| $redis->connect( '127.0.0.1', 6379 ); | |
| $redis->setOption( Redis::OPT_PREFIX, $prefix ); | |
| // set | |
| $redis->set( 'key1', 'val1' ); | |
| $redis->set( 'key2', 'val2' ); | |
| $redis->set( 'key3', 'val3' ); |
| <?php | |
| /** | |
| * @param string $file Shift_JIS の csv ファイルパス | |
| * @return array | |
| */ | |
| function parseCsv($file) | |
| { | |
| $str = file_get_contents($file); | |
| $is_win = strpos(PHP_OS, "WIN") === 0; |
| <?php | |
| /** | |
| * @param resource $img | |
| * @param int $width | |
| * @param int $height | |
| * @param int $period | |
| * @param int $amplitude | |
| * @return resource | |
| */ | |
| function imageWave($img, $width, $height, $period = 10, $amplitude = 5) { |