2008-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ã¦ãªãã¤ã¯ã®ãã¬ãããå¤æ´ããã°ãªã¢ã³ - gan2 ã® Ruby åå¼·æ¥è¨ã§ãã¬ããã®ãã¼ã¿ãä½ãã®ã« ãã¤ã¯ã§è²ãç½®ãã¦ããColorZilla :: Firefox Add-onsã使ã£ã¦è²æ å ±ãåå¾ãã¦ãããã³ããã㦠ã£ã¦ãã£ã¦ä½ã£ã¦ããã®ã ãã©ãã®ããæ¹ã¯æ®éã«ããã©ãâ¦
yasnippet ãå°å ¥ãã¦ã¿ã - gan2 ã® Ruby åå¼·æ¥è¨ã§ã¯ããããã®ãã¯ããé ããããã ãã©ã å½ã®åã¯ã¨ããã°ãå®ã¯ãã以æ¥æ¥ã«æ¥ã« yasnippet ã®ä½¿ç¨é »åº¦ãä½ä¸ãã¦ãã éã«ã¯å ¨ã使ããªãããã«ãªã£ã¦ãã¾ã£ã¦ããã ã¨ããã®ã¯ããã¹ãã¼ã¹ããªã¬ã¼â¦
以ä¸ã®ããã« Hatena.Haiku.EntryForm.prototype.showDrawForm ã« ããã¯ããã¦ããã°ããã¨æã£ã¦ããã ãã©ãªãããã¾ããããªãã (function (orig) { Hatena.Haiku.EntryForm.prototype.showDrawForm = function () { orig.apply(this, arguments); // â¦
ããããæ¸ãæ¹ãããã location.href = 'javascript:(' + function() { (function (w) { // ... // unsafeWindow.hogehoge.prototype ã¨ãã¯ããã«æ¸ã // ... }) (this.unsafeWindow || window); }.toString() + ')()'; çµè«ããã¯ãããã¡ã½ãã使ã£ã¦ã¿â¦
Emacs 㧠JavaScript ãæ¸ããåèã«ãã¦å°ãè¨å®ã追å ããã ;;; js2-mode ;; ã¨ã©ã¼ã®å¤å®å¦çãæ°ã«ãªã (autoload 'js2-mode "js2" nil t) (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) (add-hook 'js2-mode-hook '(lambda () (setq js2-bouâ¦
ä¸ã®ç»åã¯åããã¤ã¯ã§ãã使ãè²ãæ½åºãã¦ä½ã£ããã¬ããã§ãã 以ä¸ã®ã°ãªã¢ã³ã¹ã¯ãªãããã¤ã³ã¹ãã¼ã«ãã㨠ãã¤ã¯ã§å ã ç¨æããã¦ãããã¬ããã ä¸ã®ãããªèªå好ã¿ã®ãã¬ããã«å¤æ´ã§ããããã«ãªãã¾ãã ã¤ã³ã¹ãã¼ã«ã¯ãã¡ãããã©ãã â httpâ¦
使ãããã¢ããªã³ã使ããªãã®ã§ 3 ã使ããã¨ãèºèºã£ã¦ããã®ã ãã© ä»åæ£å¼çãå°å ¥ãã¦ã¿ããåããããã£ã¨å¯¾å¿ãã¦ããã¢ããªã³ã®æ°ãå¢ãã¦ããã®ã§ æ¬æ ¼çã« 2 ãã 3 ã¸ç§»è¡ãããã¨æãã 以ä¸ã2 ã§ãä¸è©±ã«ãªã£ã¦ãã®ã« 3beta æã¯ä½¿ããªãã¦å°â¦
AutoPagerize 㨠LDRize ãåæã«æå¹ã«ãã㨠Google ã®æ¤ç´¢çµæã®3ãã¼ã¸ç®ä»¥éã AutoPagerize ã§è¶³ãããªããªã£ãããã¦å°ã£ã¦ããã AutoPagerizeãLDRizeãã¤ãã§ã« Minibuffer ãã¤ã³ã¹ãã¼ã«ãç´ãã¦ããããªããªãã ã°ãªã¢ã³ã®ã¢ã¤ã³ã³ãå³ã¯ãªãâ¦
YYYYå¹´mmæddæ¥HHæMMåSS.xxxç§ãªãããYYYYmmddHHMMSS.xxxãã®ããã«ããªç§ã¾ã§å«ãã æååãè¿ãããã°ã©ã ãæ¸ãã¦ãã ããã ã¨ãã¨é¢¨ä¿æ å ±æºè¼ ã©ãæãï¼ ã¨ãããé¡ã«å¯¾ãã¦ä»¥ä¸ã®ã¹ã¯ãªãããæ稿ããã¦ããã ãã ããèªå好ã¿ã«ãªãããã«å°ãâ¦
ããã°ã©ã ã³ã¼ãä¸ã®æåã®é »åº¦ã¯è¨èªã«ãã£ã¦ç¸å½ã«ã°ãã¤ããããã¨æãã¾ããããè¨èªã¯ããªãªããé »åºããã¨ããå¥ã®è¨èªã¯ã«ãã³ã®é »åºé »åº¦ãé«ããã¨ããããã§ã * æåã®é »åº¦è§£æãããããã°ã©ã ãä½æãã * é©å½ãªããã°ã©ã ã«å¯¾ãã¦å®è¡ããçµâ¦
ãããªéè¦ãªãã¨ã«ä»æ´æ°ä»ããã ããã®ã¨ããæ¯æ¥ã®ããã«ãã¤ã¯ã§çµµãæãã¦ããã¨ããã®ã«â¦ã ãªãã¨ãããã±ã£ã·ãã ã¯ã¦ãªãã¤ã¯ã®ãçµµæããã¼ã«ã§ã¯ããã¾ãã¾ãªãã¼ãã¼ãã·ã§ã¼ãã«ããã使ã£ãæ©è½ãããã¾ãã試é¨çã«è©¦ãã¦ãããã®ãå¤ãã®â¦
Array#replace 㯠a = [1, 2, 3] a.replace [4, 5, 6] ã¨ãã£ã¦ä½¿ãããããã ãã© ããã£ã¦ a = [1, 2, 3] a = [4, 5, 6] ã£ã¦ãã£ã¦ãçµæã¯åãã ã¨æããã ããã ãã³ããã¼ã¯åã£ã¦ã¿ã¦ã require 'benchmark' num = 100000 Benchmark.bmbm(10) do |x|â¦
Benchmark ã使ãã¨ãã« require 'benchmark' puts Benchmark::CAPTION puts Benchmark.measure { a = [1, 2, 3] a.replace [4, 5, 6] } ãã®ããã« { } ã使ãã®ã¯ OK ãªã®ã« { } ã do end ã«å¤ãã㨠require 'benchmark' puts Benchmark::CAPTION puts Bâ¦