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 | |
function json_jap($str){ | |
//"\u3042\u3044\u3046\u3048\u304a" → "あいうえお" | |
$str=preg_replace_callback('{\\\\u([0-9a-f]{4})}',function($m){return mb_convert_encoding(hex2bin($m[1]),'UTF-8','UTF-16');},$str); | |
$str=str_replace(['\/','>','<',''','&'],['/','>','<','\'','&'],$str); | |
return $str; | |
} | |
?> |
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 | |
class internetTVGuide{ | |
//エリアコード | |
const AREA_HOKKAIDO=1; | |
const AREA_AOMORI=2; | |
const AREA_IWATE=3; | |
const AREA_MIYAGI=4; | |
const AREA_AKITA=5; | |
const AREA_YAMAGATA=6; | |
const AREA_FUKUSHIMA=7; |
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 | |
function json_jap($obj){ | |
$str=json_encode($obj); | |
$str=preg_replace_callback('{\\\\u([0-9a-f]{4})}',function($m){return mb_convert_encoding(hex2bin($m[1]),'UTF-8','UTF-16');},$str); | |
$str=str_replace(['\/','>','<',''','&'],['/','>','<','\'','&'],$str); | |
return $str; | |
} | |
?> |
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
data=["あ","い","う"]; | |
res="";join=" "; | |
for(i=0;i<data.length;i++){ | |
res+=(res!="")?join:""; | |
res+=data[i]; | |
} | |
res; |
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
// ==UserScript== | |
// @name ZeroFix | |
// @include http://www.nicovideo.jp/watch/* | |
// ==/UserScript== | |
(function(){ | |
var $,$$,e,t="",f1,f2,f3; | |
$=function(e){return document. querySelector(e);}; | |
$$=function(n,i){var e;e=document.createElement(n);e.innerHTML=i;return e;} | |
f1=function(){ |
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
// ==UserScript== | |
// @name ニコニコ追加コントローラー | |
// @include http://www.nicovideo.jp/watch/* | |
// @description ニコニコ動画Zeroのプレイヤーの下にコントローラーを追加します | |
// ==/UserScript== | |
add=function(){ | |
var $,$$,e,f,t="",f0,f1,f2,upR=true,contentsHtml="",contentsCSS="",g1,g2,g3; | |
contentsHtml='\ | |
<span class="left">\ | |
<div class="playPause">||</div>\ |
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
$index=1; | |
$results=[]; | |
do{ | |
$xml = simplexml_load_file('http://gdata.youtube.com/feeds/api/videos?vq=minecraft&max-results=50&start-index='.$index.'&orderby=relevance'); | |
if(!$xml){break;} | |
foreach($xml->entry as $v){ | |
preg_match('{.+/(.+?)$}',$v->id,$match); | |
$id=$match[1]; | |
print $index." ".$id."\n"; | |
$results[$id]=true; |
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
$postArr=array()l | |
$postArr["message"]="@user"; | |
$postArr["image"]="_PRE_"."/file.png"; | |
$post2=post2($postArr,"_PRE_"); | |
$curl = curl_init(); | |
$header=array(); | |
$header[]=$post2["header"]; | |
$post=$post2["post"]; |
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
<font size="7"><font color="#9933FF"><i><u><s> | |
................................................................................................... | |
................................................................................................... | |
................................................................................................... | |
................................................................................................... | |
................................................................................................... | |
................................................................................................... | |
................................................................................................... | |
................................................................................................... | |
................................................................................................... |
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
http://www.ugtop.com/spill.shtml |
OlderNewer