2007-01-01ãã1å¹´éã®è¨äºä¸è¦§
ContainerJS-0.3.0ããªãªã¼ã¹ãã¾ãããâContainerJS å¤æ´ç¹ [æ©è½è¿½å ] Typeã§ã®ã³ã³ãã¼ãã³ãåå¾ ã³ã³ãã¼ãã³ããæã¤APIãæ¡ä»¶ã«ã³ã³ãã¼ãã³ããæ¢ç´¢ããæ©è½ã§ãããããããã³ã³ãã¼ãã³ãã¯ãã³ã³ããããåå¾ããããã¢ã¹ãã¯ããé©ç¨ãããã§ãâ¦
å§ç¸®çã®æ¬¡ã¯APIãªãã¡ã¬ã³ã¹ãã¨ãããã¨ã§Googleããã«èãããã§ã¦ããJsDocã試ãã¦ã¿ã¾ãããããContainerJSã¯ãã¾ãå¤æã§ããããµã³ãã«ã§ä»ãã¦ããtest.jsã¯ã¡ããã¨å¤æã§ããã®ã«ã¼ã ã¤ã³ã¹ãã¼ã« JsDocã¯Perlã®ã¹ã¯ãªãããªã®ã§ãPerlãã¤ã³ã¹â¦
ContainerJSã®ãªãªã¼ã¹ç©ã«ã空ç½ãã³ã¡ã³ããé¤ããå§ç¸®çãå«ãããã¨æã£ã¦ãJavaScriptã®å§ç¸®ãã¼ã«ã3ã¤ã»ã©è©¦ãã¦ã¿ã¾ããã ãã¼ã«å è©ä¾¡ å§ç¸®ç ã³ã¡ã³ã å§ç¸®çµæã®ãµã³ãã«(å§ç¸®åã®ã½ã¼ã¹ã¯ãã¡ã) JavaScriptZIP 1.0.2 â 45.2% ä¸è¦ãªç©ºç½ãã³â¦
Queueã使ãã¨ã¯ã¼ã«ã¼ã¹ã¬ãããç°¡åã«ä½ãã¾ãã ã¯ã¼ã«ã¼ã¹ã¬ãã(=ä»äºãããã¹ã¬ãã)ã¯ããã¥ã¼ããé çªã«ä»äºãåãåºãã¦å®è¡ããã¹ã¬ããã§ãã ããã¨ã¯å¥ã«å®æçã«ä»äºãç©ãã¹ã¬ããããã¦ã ã¯ã¼ã«ã¼ã¹ã¬ããã¯âããä»äºãç©ã¾ããå ´åã«ããâ¦
Threadéã®å¦çã®åæã«ã¯Mutexã使ãã¾ãã Mutex#synchronize㧠Mutexã®ããã¯ã®ç²å¾ ãããã¯ã®å¦çãå®è¡ã ããã¯ã®è§£é¤ ãè¡ãã¾ããJavaã®synchronizedãããã¯ã¨ä¼¼ãæãã§ä½¿ãã¾ãã require 'thread' m = Mutex.new ts = [] 3.times { |j| ts << Tâ¦
åã«æ¤è¨ããTypeã§ã®ã³ã³ãã¼ãã³ãåå¾(ã³ã³ãã¼ãã³ããæã¤APIãæ¡ä»¶ã«ã³ã³ãã¼ãã³ããæ¢ç´¢ããã³ã³ããããåãåºãããã¤ã³ã¸ã§ã¯ã·ã§ã³ãããããæ©è½ã)ãã¾ã£ããå®è£ ãå®è£ èªä½ã¯ã ãããæ¸ãã ãã©ãã¹ãã¯æªãç°¡åãªãµã³ãã«ãåãã®ã¯ç¢ºèªããâ¦
ã¬ã·ã¼ãã«è©²å½ããã¡ã½ãããå®ç¾©ããã¦ãããmethod_missingãå®è¡ãããå ´åãé常ã®ã¡ã½ããå¼ã³åºãã¨æ¯ã¹ã¦é ããªã£ããããã®ã測ã£ã¦ã¿ã¾ããã çµè« ãããã¦å¤ããã¾ããã è¨æ¸¬ã³ã¼ã ãããã¡ã¤ã©ã使ã£ã¦ã¿ã¾ããã é常ã®ã¡ã½ããå¼ã³åºã metâ¦
delegateã使ãã¨ãä»»æã®ãªãã¸ã§ã¯ãã«å¦çã移è²ããã¯ã©ã¹ãä½ããã¨ãã§ãã¾ãããããå©ç¨ãã¦JavaScriptãªãããã¿ã¤ããã¼ã¹ã£ã½ãç¶æ¿ãã§ãã¾ãã require 'delegate' #superã¯ã©ã¹ class Animal def walk () puts "teku teku." end end #subã¯ã©â¦
Extãèªã¿è¾¼ãã¨ãDateãªãã¸ã§ã¯ãã«ãå½¢å¼ãæå®ãã¦ãã©ã¼ãããããAPIãã¨ãå½¢å¼ãæå®ãã¦æååãæ¥ä»ã«ãã¼ãºãããé¢æ°ã追å ããã¾ãã // ç¾å¨æå»ãæå®ã®å½¢å¼ã«ãã©ã¼ããã var date = new Date(); stdout.innerHTML += date.format("Y-m-d H:â¦
2ãã¤ã³ã®UIãä½ãã«ã¯ãViewportãçæãã¦ã¬ã¤ã¢ã¦ãã"border"ã«ããå³ã¨å·¦ã®ããã«ãè¨å®ãã¦ããã¾ãã Ext.onReady(function(){ // ãã¥ã¼ãã¼ã var border = new Ext.Viewport({ title: 'ã¿ã¤ãã«', layout:'border', items: [{ // å·¦ã®ããã« conteâ¦
JavaScript1.7ããgeneratorã¨ããã使ã£ãArray comprehensionsã使ããããã«ãªã£ã¦ããããããã¨ãããã¨ã§ã¨ããããã¯ã¤ãã¯ã½ã¼ããä½ã£ã¦ã¿ãã // ã¯ã¤ãã¯ã½ã¼ã! function sort(list) { if ( list.length <= 1 ) { return list; } return sort([iâ¦
ä»æ¥ã¯ã¾ã£ãã¨ããã JavaScriptã®ãªãã¸ã§ã¯ãã¯ããã·ã¥ãããã®ããã«ä»»æã®ãã¼ã¨å¤ãé¢é£ã¥ãã¦ä¿æãã¦ããã¾ããããªãã¸ã§ã¯ãããã¼ã«ããå ´åããããtoString()ããå¤ããã¼ã¨ãã¦ä½¿ããã¾ãã æ¯è¼ã«ã¯==ã===ã¯ä½¿ããã¾ããã åãã¨è¦ãªãæ¡â¦
JavaScripãå¤ã使ã£ããµã¤ãã§ãã¼ã¸é·ç§»ãå¿ è¦ãªå ´åã1ã¤ã®HTMLã«ç»é¢ãå ¨é¨ããã¦(ãããã¯åçã«ãã¼ããã¦)ãJavaScripã§å¿ è¦ãªé¨åã ãæ¸ãæãã¦é·ç§»ãè¡ãã®ãã¹ãã¼ãã§ã¯ãªããã¨æãã¾ãã(HTMLã§ã®ãã¼ã¸é·ç§»ã使ãã¨ãã¡ã¢ãªä¸ã®JavaScriptãâ¦
ä»»æã®æååãJavaScriptã¨ãã¦è©ä¾¡/å®è¡ãçµæãè¿ãevalé¢æ°ã§ããã"var x = 3;"ã¨ãå®è¡ããããã©ããªãã®ãçåã ã£ãã®ã§ãã¡ãã£ã¨è©¦ãã¦ã¿ã¾ããã åºæ¬ã«ã¼ã« æååãJavaScriptã¨ãã¦è©ä¾¡/å®è¡ããå¼ãå®è¡ããã¦ããã°ãã®å¤ãè¿ãã¾ãã å¼ãâ¦
ãµã¼ãã¼å´ã®CGIãããã£ã¨å®è£ ãã¦ãåå¾ããä¸è¦§ãã対æ¦ç¸æãé¸æã§ããããã«ãã¾ããã ãµã¼ãã¼ããåå¾ãããã¬ã¼ã¤ã¼ã®ä¸ãããç¸æãé¸æãã¦å¯¾æ¦ã§ãã¾ãã 対æ¦ç¸æã®ã¢ã«ã´ãªãºã ã¯ã¨ãã£ã¿(CodePressãå©ç¨)ã§ã«ã¹ã¿ãã¤ãºã§ãã¾ãã âä»æ¥ã¾â¦
Extã«æãåºãã¦ã¿ã¾ãããã¤ã³ã¹ãã¼ã«ããã¡ãã»ã¼ã¸ãã¤ã¢ãã°ã使ã£ãHelloWorldã¾ã§ã Extã®ãã¦ã³ãã¼ãã¨ã¤ã³ã¹ãã¼ã« ExtããExtã®ã¢ã¼ã«ã¤ãããã¦ã³ãã¼ããã¦å±éãã¾ãã ææ°ã® version 2.0 ã使ãã¾ããã å¿ è¦ãªã¢ã¸ã¥ã¼ã«ãHTMLã«åãè¾¼ã¿ã¾â¦
RubyForgeã«ããã¸ã§ã¯ããä½ããversion 0.0.1 ã¨ãã¦ãªãªã¼ã¹ãã¾ãããâClickClient ããã¸ã§ã¯ãåã¯ãClickClientãã§ãã å æ¥ä¼ç¤¾åãå¤æ´ããããããªã®ã§ãããã«åããã¦å¤æ´ãã¾ãããã¢ã¸ã¥ã¼ã«åããGMOããããClickClientãã«å¤æ´ãã¦ãã¾ãâ¦
Object.constructorã§ã³ã³ã¹ãã©ã¯ã¿é¢æ°ãåå¾ã§ãã¾ãã var stdout = document.getElementById("stdout"); // Object.constructor ã§ã³ã³ã¹ãã©ã¯ã¿é¢æ°ãåå¾ã§ããã var Kitten = function () {}; var mii = new Kitten(); stdout.innerHTML += "mii.câ¦
åã«æ§æ³ãããTypeãæ©è½ãã¡ãã£ã¨å®è£ ãã¦ã¿ã¾ãããTypeã®çæã¨ãã§ãã¯APIã®ã¿ãã³ã³ããã«ã¯ã¾ã çµã¿è¾¼ãã§ãã¾ããããã¨ãã¹ããéä¸ã¾ã§ããã§ãã¦ãªãã§ãããããªæãã§ä½¿ãã¾ãã // ãã¹ãç¨ã¢ãã« var TestObject = function(){} TestObject.â¦
Javaã®BitSetã¿ãããªã®ãå¿ è¦ã ã£ãã®ã§æ¸ãã¦ã¿ã¾ããã function BitSet( defaultValue ) { this.value = defaultValue ? defaultValue : 0 ; } BitSet.prototype = { on: function( index ) { if ( index < 0 || index >= 32 ) { throw "out of bounds."â¦
CodePressã¯JavaScriptã§æ¸ããããªã¢ã«ã¿ã¤ã ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ã¿ã¼ã§ãã ãµã¼ãã¼ã使ãããã©ã¦ã¶ã®ã¿ã§ãæå®ãããããã¹ãã¨ãªã¢æååã®ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããè¡ãã¾ãã ãã¤ã©ã¤ãã¯ãããã¹ãã®ç·¨éã«å¿ãã¦ãªã¢ã«ã¿ã¤ã ã§è¡ããã¾ãã ã³â¦
ã ãã¶åã®ã¨ã³ããªããRubyã¯ã©ã¹ãJSONã§ã¢ã¯ã»ã¹ã§ããWebãµã¼ãã¹åãããã§ä½ã£ãJSONBrokerã®JavaScriptã¯ã©ã¤ã¢ã³ããæ¸ãã¾ããã (åç½®ã)JSONBrokerã¯ä»»æã®Rubyã¯ã©ã¹ã®APIãJSONã§ã¢ã¯ã»ã¹ã§ããWebãµã¼ãã¹ã¨ãã¦å ¬éããããã®ç°¡æã¦ã¼ãã¤ãªâ¦
IFD-OCOåå¼ã®ãã¹ãã追å ãç´å®ããªãã¨è©¦ããªã以ä¸ã®æ©è½ã®ãã¹ããé¤ããããã§ä¸éããã¹ãå®äºã§ãã æ±ºæ¸ å»ºçä¸è¦§ ä»æ¥ã¾ã§ã®ææ ãã¡ãããã©ããã
Yahoo! UI Library 2.4.0 ããJSONã®ãã¼ãºã¨ã·ãªã¢ã©ã¤ãºãããAPIã使ããããã«ãªã£ã¦ãã¾ããjson.jsã§ãã§ãã¾ãããããã¨éã£ã¦ã°ãã¼ãã«åå空éãæ±ããªãã®ã§å®å¿ãã¦ä½¿ãã¾ãã(json.jsã¨prototype.jsãä¸ç·ã«ä½¿ãã¨ã¨ã©ã¼ã«ãªããã¨ããã£ããâ¦
Yahoo! UI Library 2.4.0 ã®æ°æ©è½ãChartãã使ã£ã¦ã¿ã¾ããã ãChartãã使ãã¨JavaScript APIã®å¼ã³åºãã ãã§ç°¡åã«ãã£ã¼ããä½æã§ãã¾ãã ãã£ã¼ãã¯Flash(CSSãJavaScriptã§ã¯ãªã)ã使ã£ã¦æç»ããã¾ãã å é¨çã«ã¯ãASTRAã使ããã¦ããããã§â¦
JavaBeanãä½ãæã«Getter,Setterãæ¸ãã®ã¡ã³ãã¦ã§ããããRubyã¿ããã« attr :foo ã¨ãã§ã¢ã¯ã»ãµãä½ã£ã¦ãããã°è¯ããã©ããã«ãJavaã«ãããªæ©è½ã¯ããã¾ããã(Java SE 7ã§ã§ããããããã©ã)楽ããæ段ã¨ãã¦Mapã使ãã¨ããæãããã¾ãããããâ¦
ãã¬ã¼ã¤ã¼ãå ¥åãã¦å¯¾æ¦ã§ããããã«ãã¾ããã ããã¹ãã¨ãªã¢ã«ãã¬ã¼ã¤ã®ã³ã¼ã(ç³ãç½®ãå ´æãã³ã¼ã«ããã¯ããJavaScripté¢æ°)ãå ¥åããã対æ¦ããããã¯ãªãã¯ããã¨ããã¨å¯¾æ¦ã§ãã¾ãã ããã©ã«ãã§ã¯ãããããå ´æã«ç½®ããã¬ã¼ã¤ã¼ãã®ã³ã¼ãâ¦
ãã¤ã³ãã¡ã½ããã®è¨å®ãã¡ã³ãã¤ä»¶ã«ã¤ãã¦ãæå®ããã¡ã½ãã(ã»ãã)ãæã¤ã³ã³ãã¼ãã³ããæ¢ãã¦ããæ©è½ãã³ã³ããã«ããã°è¯ããã§ã¯ãã¨æã£ãã æ©è½ ã³ã³ããã«ç»é²æ¸ã¿ã®ã³ã³ãã¼ãã³ããã¹ãã£ã³ãã¦ãæå®ããã¡ã½ãããæã¤ã³ã³ãã¼ãã³ããâ¦
Reversiã«ã¿ã¤ãã¼æ©è½ãå®è£ ãèªåã®ã¿ã¼ã³ã«ãªã£ãå¾ãä¸å®æéç³ãç½®ããªãã¨ååè² ãã«ãªãã¾ãããã¨ãä¸å ·åãããã¤ãç´ãã¾ããã å¦çããã¼ãè¤éã«ãªã£ã¦ããã®ã§ä¸æ¦ãªãã¡ã¯ã¿ãããã ã³ã³ããã®ãã¤ã³ãã¡ã½ããã使ã£ã¦ã¤ãã³ãéç¥ããã¦ãâ¦
OCOåå¼ã¨IFDåå¼ã®åºæ¬ã®ãã¹ã(注æã注æå¤æ´ããã£ã³ã»ã«)ã追å ãã¾ãããç¹ã«åé¡ãªãã ä»æ¥ã¾ã§ã®ææ ãã¡ãããã©ããã â»å®éã®Webãµã¼ãã¹ã§ã®åä½ã¯æªæ¤è¨¼ã§ãããã¼ã«ã«ãµã¼ãã¼ã§ã®åä½ã®ã¿ç¢ºèªãã¦ãã¾ãã