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(){ | |
var l='マ,イ,ケ,ル,ジャ,ク,ソ,ン'.split(','); | |
function s(a){var i=a.length,j,t;while(i){j=Math.floor(Math.random()*i),t=a[--i];a[i]=a[j];a[j]=t;}return a;} | |
alert(s(l).join('')) | |
})() | |
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://matome.naver.jp/odai/2124780557528354000 | |
のキャッチコピー抜き出したやつ。 | |
あとで何かに使う。 | |
※抜き出すのに使ったjavascript | |
javascript:(function(h,b,r,i,l,m){ | |
h=document.getElementsByTagName('h4'); | |
b=[]; |
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(b,i,l){ | |
function x(u,f){ | |
var o=new XMLHttpRequest()||new ActiveXObject('Microsoft.XMLHTTP'); | |
o.onload=f;o.open('GET',u,true);o.send(null); | |
} | |
b=document.getElementsByTagName('div'); | |
for(i=0,l=b.length;i<l;++i){ | |
if (/track_details_[0-9]/.test(b[i].id)) { | |
var u='http://8tracks.com/sets/1234567980/play.xml?track_id='+b[i].id.replace('track_details_',''); | |
x(u,function(){ |
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
body{zoom:expression(document.body.onload=function(){ | |
// expression import test | |
var img = document.createElement('img'); | |
img.src='http://gedo-style.net/g/?v=149583&d=r.jpg'; | |
document.body.insertBefore(img, document.body.firstChild); | |
alert('えーまじきもーいwww'); | |
// expression import test | |
}); | |
} |
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
var n = 1000; | |
var a = 4; | |
var b = 1; | |
for(var i=3,j=0;i<n;i+=2,j++){ | |
b += ((j%2 === 0)?-1:1) * (1/i); | |
} | |
var pi = a*b; | |
alert(pi); |
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(){ | |
function stripTags(str){return str.replace(/<[^>]+>/g, '');} | |
var buf = []; | |
var tables = document.getElementsByTagName('table'); | |
for(var i=0,l=tables.length; i<l; i++) { | |
var tr = tables[i].getElementsByTagName('tr'); | |
for(var j=0,ll=tr.length; j<ll; j++) { | |
var td = tr[j].getElementsByTagName('td'); |
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://hobby2.2ch.net/owarai/kako/1033/10339/1033914472.html | |
Smells like teen spirit → 厨房臭 | |
Only if → 引きこもり | |
I was born to love you / Queen → お前で我慢するぜ。 | |
Stand by me → これが俺のスタンドだっ! | |
Without you (ニルソン、マライアとか) → お前以外 | |
Anywhere is → 徘徊 |
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
洋楽に勝手に邦題つけるスレのまとめのまとめ | |
IMAGINE / john lennon → 電波 | |
Sound of silence / simon & garfunkel → 空耳アワー | |
STARMAN / david bowie → ~にしきのあきらのテーマ~ | |
The Wanton Song / Led Zeppelin → ズルい女 | |
Nowhere man / Beatles → 露出狂 | |
2 Become 1 / Spice Girls → ベッカムが3P | |
Let It Be / beatles → 放置プレイ | |
JUMBO / Underworld → 尾崎 |
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
/** DocComp*/ | |
var DocComp = { | |
reg1 : new RegExp('[一-龠々〆ヵヶ]+|[ぁ-ん]+|[ァ-ヴー]+|[\uFF65-\uFF9F]+|[a-zA-Z0-9]+|[a-zA-Z0-9]+|[,\.、。!!?\?・]+|(.*?)|「.*?」|『.*?』|【.*?】|〈.*?〉|\(.*?\)|\[.*?\]|\{.*?\}|\<.*?\>|[\s ]+', 'g'), | |
reg2 : new RegExp('(でなければ|そういえば|そういや|どうにも|こうにも|について|そりゃ|ぐらい|くらい|ながら|ならば|までを|までの|なのか|として|です|ます|つつ|だに|まで|とは|とて|なら|から|まで|して|だけ|より|にて|ほど|など|って|では)', 'g'), | |
trim : function(str){return str.replace(/^[\s ]+|[\s ]+$/g, '');}, | |
morpheme : function(str){ | |
var s=str.replace(this.reg2, "$1|"),a=s.split("|"),rt=[],i=0,l=a.length; | |
for (; i<l; i++) { | |
var ts=a[i].match(this.reg1); | |
if(ts){ |
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
var DocCompRep = { | |
isMSIE : /*@cc_on!@*/false, | |
doIE : function(str){ | |
var range = document.selection.createRange(); | |
try{range.pasteHTML(str);}catch(e){} | |
}, | |
doFF : function(str){ | |
var w = window; |