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 | |
| header( 'Content-Type: application/json; charset=utf-8' ); | |
| echo json_encode( | |
| array( | |
| 'name' => 'mgng', | |
| 'twitter' => '@mgng', | |
| 'hobby' => 'インータネット', | |
| 'address' => array( | |
| 'pref' => '東京都', | |
| 'city' => 'インータネット市', |
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 | |
| // AtpagesInit | |
| class AtpagesInit { | |
| public static function run() { | |
| $_GET = self::_sanitizeNullChar($_GET); | |
| $_POST = self::_sanitizeNullChar($_POST); | |
| $_COOKIE = self::_sanitizeNullChar($_COOKIE); | |
| if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() === 1 ) { |
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
| youtube動画開いてアドレスバーに以下コピペしてエンター押すと画面したのほうに動画ファイルのリンクが出る | |
| javascript:(function(){var s=document.createElement('script');s.src="http://bit.ly/IYtnfi";s.charset="utf-8";document.body.appendChild(s);})() |
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 toWareki ( $y, $m, $d ) { | |
| $data = array( | |
| array( 'nengou' => '明治', 'from' => 18680908, 'to' => 19120730,), | |
| array( 'nengou' => '大正', 'from' => 19120730, 'to' => 19261225,), | |
| array( 'nengou' => '昭和', 'from' => 19261225, 'to' => 19890107,), | |
| array( 'nengou' => '平成', 'from' => 19890107, 'to' => 99999999,), | |
| ); |
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
| http://twitter.com/#!/yoshuggah/status/186671653462343680 | |
| @mgng Aさんの話。自殺の名所があって、それが地元でも有名な場所なんですけどね・・・ | |
| http://twitter.com/#!/yoshuggah/status/186675730678161408 | |
| @mgng Aさんは、よくあるテレビの心霊番組で、凄い写真を送って謝礼金を貰える事にかけていた。「凄いのを撮って来てやる!」と言って向かった先は、地元で有名な自殺の名所〇〇橋だ。 そこは山に囲まれ夜になれば辺りは真っ暗になるが、自殺を防ぐために橋だけは綺麗にライトアップされている | |
| http://twitter.com/#!/yoshuggah/status/186676250121744384 | |
| @mgng Aさんは、そこへ夜に張り込んで自殺を待てば、何かが撮れると思ったのだ。山の方で待機して、ひたすら待つが、一日目は何もなかった。幾日か過ぎAさんは、遂に凄いのが撮れたぞ!スクープだ!と言って来た。いつもの様に山の方から橋を見ていると、一台の車が来た。 | |
| http://twitter.com/#!/yoshuggah/status/186676575100600320 |
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 | |
| // http://mgng.aws.af.cm/twicon | |
| $id = isset( $_GET['id'] ) ? $_GET['id'] : ''; | |
| $size = isset( $_GET['size'] ) ? $_GET['size'] : ''; | |
| if ( !preg_match( '/\A[\w\-]+\z/u', $id ) ) { | |
| header('Not Found', true, 404); | |
| exit; |
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 | |
| $filter_list = array( | |
| Imagick::FILTER_UNDEFINED, | |
| Imagick::FILTER_POINT, | |
| Imagick::FILTER_BOX, | |
| Imagick::FILTER_TRIANGLE, | |
| Imagick::FILTER_HERMITE, | |
| Imagick::FILTER_HANNING, | |
| Imagick::FILTER_HAMMING, | |
| Imagick::FILTER_BLACKMAN, |
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 | |
| $a = isset($argv[1])? $argv[1] : exit; | |
| if ( !preg_match('/^[arst]$/', $a) ) { exit; } | |
| $w = 350; | |
| $h = 234; | |
| $i = new Imagick('sample.jpg'); | |
| $s = microtime(true); |
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
| <div id="hoge.fuga">hoge.fugaのテキスト</div> | |
| <script type="text/javascript"> | |
| $("#hoge\\.fuga").text(); // hoge.fugaのテキスト | |
| $("div[id='hoge.fuga']").text(); // hoge.fugaのテキスト | |
| </script> |
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 isInantoka() { | |
| return !!preg_match('/iPhone|iPod|iPad/', isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''); | |
| } | |
| var_dump( isInantoka() ); |