JavaScript
æ¦è¦ æ¨æ¥ãèªåèªèº«ãåºåããHaskellããã°ã©ã ãçæããOCamlããã°ã©ã ãçæããSchemeããã°ã©ã ãçæããRubyããã°ã©ã ãçæããJavaScriptããã°ã©ã ãçæããCããã°ã©ã ãæ¸ããã #include<stdio.h> int main(){char*g="var p=print;p('puts %%^(form</stdio.h>â¦
ã¯ãã¹ãã¡ã¤ã³ã©ãããåãã¡ã¤ã³ã§ãåããªãã£ã alertã¯å ¥ã£ã¦ãªã (ã¯ãã¹ãã¡ã¤ã³ã§ã)ãªã¯ã¨ã¹ãã¯å±ãã¦ããã¿ãããªãã ãã©onloadãonreadystatechangeãonerrorãç¡åå¿ ãã¿ãµ (6/10追è¨) åèµ·åãããåãããçªç¶åããªããªã£ãããã¦ã¾ãã¾ãâ¦
http://e-arrows.sakura.ne.jp/2010/12/closure-library-on-js2-mode.htmlãåèã«è¨å®ãã¦ããã®ã ãã©ï¼ããã ã¨caseã®ä¸èº«ã®ã¤ã³ãã³ãããã¾ããããªãã£ãï¼ myapp.main = function() { var Fruit = some.namespace.Fruit; switch (fruit) { case Fruitâ¦
Macã§æ®éã«make -f Makefile.refããã¨ï¼ cat: ../../dist/Darwin_DBG.OBJ/nspr/Version: No such file or directoryã¨è¨ããã¦makeã«å¤±æããï¼NSPRã¨ãããã®ã«ä¾åãã¦ãããããï¼ããã§ï¼ã¾ãNSPRãå ¥ããï¼ cvs -q -d :pserver:anonymous@cvs-mirror.â¦
Firefoxã ã¨Errorãªãã¸ã§ã¯ãã®stackããããã£ã§ã¹ã¿ãã¯ãã¼ã¬ã¹æååãå¾ããããï¼Greasemonkeyçµç±ã ã¨è¡çªå·ã359ãããï¼ãããã¬ãã«ã§ã®ã¹ã¿ãã¯ãã¬ã¼ã¹ãè¦ãã¨ä½ãèµ·ãã£ã¦ããã®ããªãã¨ãªãæ³åãã¤ããâ¦Greasemonkeyã®ãã¼ã¸ã§ã³ã«ãã£ã¦ãâ¦
var a = window.wrappedJSObject.b = {}; var c = a.d = new function() {}; alert(c.constructor.prototype); // => undefined var a = window.wrappedJSObject.b = {}; var c = new function() {}; alert(c.constructor.prototype); // => [object Object]â¦
js2.elå 㧠(eval-when-compile (defvar font-lock-keywords nil)) ããã¦ããããªã®ãï¼js2-modeã ã¨font-lock-keywordsãnilã«ãªã£ã¦ãï¼js2-modeã®font-lockã®æãæ¹ãããããããªãã£ãã®ã§ï¼js2-mode-hookã§ç¡çç¢çè¨å®ããï¼ ããããï¼js2-mode-hooâ¦
agehaãããwikiãç¨æãã¦ããã¾ããï¼æè¬ï¼xpd wiki ä»å¾ã¯ãã¡ãã§ãªãªã¼ã¹ãã¦ãããã¨ã«ãªãã¾ãï¼
Greasemonkeyã®ã³ã³ããã¹ãã§ã¯ï¼unsafeWindow=ãã¼ã¸ã§ã®windowãªãã¸ã§ã¯ãï¼window=wrapãããwindowãªãã¸ã§ã¯ã ããªãã¡ï¼window.wrappedJSObject == unsafeWindow unsafeWindowçµç±ã§å¤ããGreasemonkeyã®APIãå©ããã®ã§ï¼å±ãªã ã¨ãããã¨ãªã®ãâ¦
ftp://ftp.mozilla.org/pub/js/js-1.7.0.tar.gzãããã¦ã³ãã¼ãï¼ tar zxvf js-1.7.0.tar.gz cd js/src/ make -f Makefile.ref sudo cp -i Darwin_DBG.OBJ/js /usr/local/bin/
ããã¯ãã¼ã¯ã¬ããããã®ã¾ã¾ããåããªãã£ãï¼documentãªãã¸ã§ã¯ããwrapããã¦ãï¼ documentãdocument.wrappedJSObjectã«å¤ãããåããï¼ åèï¼XPCNativeWrapper | MDN ã°ãã¼ãã«ãªåå空éãæ±æãããã£ã¦ããæ¸ãã¦ãããã©ï¼URLæ¬ããããè¦ãâ¦
Carbon Emacsã«æåããå ¥ã£ã¦ããJavaScriptã®ã¢ã¼ããããããé ·ãã£ãã®ã§ï¼è©å¤ã®è¯ããããªjs2-modeãå ¥ãã¦ã¿ãï¼ ã¤ã³ãã³ããè²ä»ããæ£ç¢ºã ãï¼ãªã¢ã«ã¿ã¤ã ã«è¦å/ã¨ã©ã¼ã表示ãã¦ãããï¼ãã ï¼{ãå ¥ããã¨æ¹è¡ã¨}ãå ¥ãã¦ããããï¼(ã[ã§ãéâ¦
ver0.5.0 ã¢ã¤ãã ä¸ææã«ã§ããªããã°ãä¿®æ£ï¼æ°è¦ä¿åæ©è½ãå®è£ ï¼
koniããããä¾å¤å¦çãã¦ãªãã¨ã®ãææï¼ãã®éãã§ãï¼å®æ度ä¸ãã£ã¦ããã¨ã大åãããã¨ãã§ããï¼ãªããå¾®å¦ã«é ã£ã¡ãã£ã¦ããã©ï¼ä½¿ã£ã¦ãããããã«ã¯éçºä¸ã§ãããã¨ãã¡ããã¨èª¬æããªãã¨ãªãï¼ã¾ãåºæ¬çãªæ©è½ã¯å®è£ ã§ãããï¼ããããä¾å¤â¦
javascript:(function(){c=document.getElementsByTagName("input")[1].value.split("_");for(i=0;i<6;i++){for(j=3;j<7;j++){g=document.getElementsByTagName("tr")[i+1].getElementsByTagName("td")[j];g.innerHTML=g.innerHTML.replace("ãããããã¯â",â¦
åªåå¤ã«å¯¾å¿ï¼ãããã¿ã¤ãã¯æ¤è¨ä¸ï¼ 並ã³æ¿ãæ©è½ã¯ï¼ãã§ãã¯ããã¯ã¹ã®onchangeã使ãã¨ãã¾ããããããããªãï¼ ãªããã©ãã©ãåãå¢ãã¦ãããªãï¼ã¾ãããããï¼å ãããã¤ãæ¹é ãã¦ãããã¨ãããããããããã ããï¼
æ§å¥èªåå¤å®ãå®è£ ï¼ PDã«æ£ããHPã®å¤ãã»ããããã®ãæ¸ãå¿ãã¦ã¦100åºå®ã«ãªã£ã¦ãã®ãä¿®æ£ï¼ç¨®æãå¤ããããã®ã«åªåå¤å¤ããããªãã®ã¯å¾®å¦ããããã¨ã«æ°ä»ããã®ã§ï¼æ¬¡ã¯åªåå¤ï¼ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯èãä¸ã ãã©ï¼ãã£ã±ãç®±ãäºã¤ä¸¦ã¹ã¦ãã¾ãã®â¦
種æå¤æ´ï¼ä¿åã¾ã§å®è£ ããï¼ãã ï¼ã½ã¼ã¹ãé·éãã¦IEã§ã¯åããªãã¨æãï¼caminoã§ã¯åããï¼
åªåå¤ããã¤ã³ãã¢ããã®åæ°ã¯ï¼ã¯ããã¼ããã¨ã£ã¦ããªãã¨ãããªããããªã®ã§ï¼ä»æ¥ã¯ã¯ããã¼ããã¼ãºããé¢æ°ãæ¸ããï¼ ãã㧠種æåãããã¹ãããã¯ã¹ã«ãã(koniããä½) ãã¿ã³ã®æ¹é ã¯ããã¼ã®ãã¼ãº ã¾ã§ã§ããï¼ã¾ã 表é¢çãªã¨ãã°ã£ããã ãªâ¦
ä¸æ¸ä¿åãã¿ã³ã®valueã"ä¿å"ã«ãããï¼PDã®å¤ãã¯ããã¼ã«ã»ãããããï¼
種æå¤æ´ æ§å¥ã¨ãããã¿ã¤ã表示 åªåå¤(å ¨63 or æ»æ0 or 詳細è¨å®) 並ã³æ¿ããã¿ã³ ãã±ããã¯ã¹ã¸ã®ãªã³ã¯
ããã¯ãã¼ã¯ã¬ããã§ããã¨ãªãã¨ï¼æåæ°å¶éãåä»ï¼å¤é¨ã¹ã¯ãªãããèªã¾ããã«ã¯å ´æãå¿ è¦ã ãï¼ã¨æã£ã¦ããã ãã©ï¼ããã¯ãã¼ã¯ã¬ããã§ãªãã¦ãã¬ã¼ã 使ãã°ããããæ¾é¡ãªæ°ããã¦ããï¼ãã¬ã¼ã ãããã£ã¦è©±ããããã©ï¼ãããä»ã«ããæ¹æ³ããâ¦
foo = new Object(); foo.hoge = function () {print(this)}; fuga = foo.hoge piyo = function () {foo.hoge()}; fuga.call(foo) piyo() ãã®fugaã¨piyoã¯éããã ããï¼JavaScriptçã«ã¯å½ç¶ãªãã ãããã©ï¼ãã ã®é¢æ°ãªãã¸ã§ã¯ãã ããï¼ ã©ã£ã¡ãã¨ãâ¦
withã¨ãªãã¸ã§ã¯ããªãã©ã«ã使ãã¨ï¼Schemeã®letã®ãããªãã¨ãã§ããã¨ç¥ã£ãï¼ var hoge = 1; with ({hoge: 2}) { print(hoge); // 2 } print(hoge); // 1 ããã¯ä¾¿å©ããï¼ã§ãï¼ç¨®é¡ã®æ¬å¼§ãå ¥ã交ãã£ã¦ã¦ã¡ãã£ã¨è¤éã ãªãï¼JavaScript1.7ã«ã¯letãâ¦
javascript:(function(){q=document;f=q.getElementsByTagName;d=["æ ¼","é£","æ¯","å°","岩","è«","é","é¼","ç","æ°´","è","é»","è¶ ","æ°·","ç«","æª"];c=f.call(q,"input").item(1).value.split("_");for(i=0;i<6;i++){h=f.call(q,"tr").item(i+1);h.innerâ¦