The Git Community Book Welcome to the Git Community Book. This book has been built by dozens of people in the Git community, and is meant to help you learn how to use Git as quickly and easily as possible. If you see anything out of date, have a suggestion on how to improve it, or would like to help add to the book, please see the How to Contribute page, or just send our maintainer a note.
Welcome to Savannah, the software forge for people committed to free software: We host free projects that run on free operating systems and without any proprietary software dependencies. Hosting requirements Our service runs with 100% free software, including itself. Why choose Savannah? Savannah aims to be a central point for development, maintenance and distribution of official GNU software. In
フィードをオートディスカバリーする XPath - IT戦記 http://mxr.mozilla.org/mozilla/source/browser/base/content/pageinfo/feeds.js#39 http://mxr.mozilla.org/mozilla/source/browser/base/content/utilityOverlay.js#639 '/x:html/x:head/x:link[@href and (contains(concat(" ",translate(normalize-space(@rel),"DEF","def")," ")," feed ") or (contains(concat(" ",translate(normalize-space(@rel),"AELNRT","aelnrt")," ")," alternate ")
(GM_)XMLHttpRequestなどで取ってきたJSON文字列をDOMツリーに変換する関数を書いたのでメモ。 var createDocumentFromJSONString = function(str){ var json = (new Function('return (' + str + ');'))(), jsonDoc = document.implementation.createDocument("", "json", null); if (json instanceof Array) { jsonDoc.documentElement.setAttribute("type", "array"); json = { jsonarray: json }; } else if (typeof(json) === "object") { if (json === null)
この文書は ECMA-357 ECMAScript for XML (E4X) Specification 2nd edition を訳者 (nanto_vi) が私的に訳したものであり、Ecma International またはその他の関連団体・個人とは一切関係ありません。 この文書は正規の仕様ではありません。正規の仕様に関しては Ecma International から PDF で公開されています。 翻訳の内容については保障しません。この文書の利用によって発生したいかなる損害についても訳者は責任を負いません。 翻訳上の誤りなどがあれば訳者 (ブログまたはメール <nanto (at) moon.email.ne.jp>) までご連絡ください。 Standard ECMA-357 2nd Edition / December 2005 序文 2002 年 6 月 13 日、BEA S
var defer = function(/* f1, f2, ... */){ var self = this, fn = Array.prototype.slice.call(arguments); (function(/* arg2, arg3, ... */){ var args = Array.prototype.slice.call(arguments); (fn.shift()).apply(self, [arguments.callee].concat(args)); })(); }; defer(function(next){ var t=1; alert(t); window.setTimeout(function(){ next(t+1); }, 1000); // 1秒後に第2引数を2として次の関数を呼ぶ }, function(next,t){ alert(t);
New in JavaScript 1.7 - MDC JavaScript1.7 の yield を使って、非同期処理を同期処理のように書く方法 - IT戦記 // ==UserScript== // @name defer // @namespace http://mayokara.info/ // @description sample script // @include http://* // ==/UserScript== (function(cdata){ // type指定しないとyieldが使えない var s = document.createElement("script"); s.type = "application/javascript;version=1.7"; s.textContent = cdata.toString(); var head = docu
Naive Bayes classifier - Wikipedia, the free encyclopedia var BayesFilter = function(aMemory){ this._memory = aMemory || { t: 0, f: 0, prior: {} }; }; BayesFilter.prototype = { getMemory: function(){ return this._memory; }, train: function(bool, params){ this._memory[bool ? "t" : "f"]++; params.forEach(function(v){ if (!this._memory.prior[v]) { this._memory.prior[v] = { t: 0, f: 0 }; } this._memor
Core JavaScript 1.5 Reference:Global Objects:String:concat - MDC var l = 20000; console.time("Array#join"); for (var i=0; i<l; i++) { [ "aaaaaa", "bbbbbb", "cccccc", "dddddd", ].join(""); } console.timeEnd("Array#join"); console.time("String#concat"); for (var i=0; i<l; i++) { String.concat( "aaaaaa", "bbbbbb", "cccccc", "dddddd" ); } console.timeEnd("String#concat"); Array#join: 407ms String#conc
New in JavaScript 1.7 - MDC SpiderMonkey Build Documentation - MDC SpiderMonkeyのビルド - ラシウラ mkdir SpiderMonkey cd SpiderMonkey wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz tar zxvfp js-1.7.0.tar.gz gZip、eXtract、Verbose、File、Permissionの略。 rarの使い方なんかより、tarの使い方を知ったほうが良いと思う。 cd js/src make -f Makefile.ref OS_ARCH=Linux make -f Makefile.ref OS_ARCH=Linux js 1回目のmakeで失敗するが、気にせず続けるとLinux
http://feedgen.appjet.net/ URLと正規表現からRSS 2.0を作るサービス。 たとえばこのブログなら(フィードあるから意味ないけど) url http://mayokara.info/note/ re <h2 class="entrytitle entry-title"><a[^>]+>([\s\S]+?)</a></h2>\s*<div class="entrybody entry-content">([\s\S]+?)</div>(?=\s*<ul class="entryinfo">) title 1 description 2 で http://feedgen.appjet.net/?url=http%3A%2F%2Fmayokara.info%2Fnote%2F&re=%3Ch2+class%3D%22entrytitle+entry-title%22
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く