2006年12月13日01:15 カテゴリLightweight Languages javascript - Math.Rational で 1/3 * 3 == 1 別件で必要があったのでちょこっとこさえたものです。 println(1/3); // println() is predefined println(new Math.Rational(1,3)); // 基本形 println(new Math.Rational('1/3')); // 文字列もOK println(new Math.Rational('0xdeadbeef/01234567')); // これでもOK println(new Math.Rational(4.2)); // 浮動小数点も分数化 var r1 = new Math.Rational('6/7'); var r2 = new Math.Rat
On Jan 18 2007, at Mashup Camp 3 in Boston, CV Vick and Clayne Robison launched Intel Web 2.0 TDK, which provides royalty-free Javascript API, binary and source codes to allow you to create web applications by taking advantage of the mobile features on notebooks and UMPCs. Create Web 2.0 application with the platform and the environment in mind. Leverage information about the platform's configura
[edit] [comment] [remove] |2006-01-30| e1 # Transforming JSON JSON is a lightweight text format for data interchange. It is often better suited for structured data than XML. A frequently requested task with JSON data is its transformation to other formats, especially to XML or HTML for further processing. The most obvious way to achive this, is to use a programming language (ECMAscript, Ruby,…) an
特定のscript中に含まれるdocument.writeを上書きして、遅延描画にすることができます。 document.writeを使う広告配信スクリプトや、ブログパーツなどの挙動を置き換えることが出来ます。 外部サーバーから読み込むスクリプトをページ最後部に記述することでページレンダリングを妨げなくなります。 このページはこんな感じになってます。 var adsense_url = 'http://pagead2.googlesyndication.com/pagead/show_ads.js'; document.lazy_writer(adsense_url, function(str){ var id = "adsense_" + this.script_count; document.getElementById(id).innerHTML = str; }, {delay :
MochiKit.Animator 0.9.2 Demos/Testbed MochiKit.Animator is an enhanced*, fully vectorized implementation of Bernard Sumption's animator.js. It eschews the use of classes and instead uses composition to build complex effects in one or two lines of code. The idea is to have everything work "right". This means not having to specify start values, maximum efficiency during playback, and clean, automati
« 組み込み用 Wiki | メイン | Japanize - JP ドメインの翻訳データ登録について » 2006年09月13日 Wiki.Formatter in JavaScript というわけで、いまさら Wiki のフォーマッタを作りました。JavaScript で実装したので、クライアントサイドで整形することができます注1。なので、既存のウェブアプリを wiki 記法に対応させたいな、といった場合に便利だと思います注2。記法も自由に拡張できるようになっていますし。 というわけで、↓でお試しください (編集結果は保存されません)。 注1: AJAJA 等サーバサイド JavaScript で使うこともできるはず 注2: 整形前のテキストを隠し DIV 等に入れておけば、SEO 的にも大丈夫なんでしょうか? 注2: テーブルの修飾、画像へのリンク等が未対応です
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く