Do you want to have your JavaScript and Html code fixed? The inspiration for this application, along with much of its look and feel, are based heavily on Steve Sanderson's Knockout tutorials. (learn.knockoutjs.com). Thank you, Steve.
Do you want to have your JavaScript and Html code fixed? The inspiration for this application, along with much of its look and feel, are based heavily on Steve Sanderson's Knockout tutorials. (learn.knockoutjs.com). Thank you, Steve.
いわゆる getopts、argparse 的なことをしてくれる以下のモジュールたちをざっと使ってみて: commander nopt nomnom minimist 比較というか、雑な感想を述べてみます。 – help のドキュメントを自動生成してくれる – サブコマンドの設定ができる - 中で子プロセスで起動するようになっている - original_command-sub_command.js のファイル名で別に設置する必要がある - ぶっちゃけ、余計なお世話としか思えない – 設定は commander のモジュールに対して行うので、副作用がある - それどころか展開した結果も何故かモジュール以下に展開する。ウワァァン、キモイヨー! – 要件がシンプルなら便利 追記、ブコメから: – teppeis さん「commanderはnew Commandすればグローバルではなくインスタン
// Piet Mondrian [demo] "Art is not made for anybody and is, at the same time, for everybody." - Piet Mondrian I started with Mondrian not because he is my favorite artist (he is not), or that his work is very recognizeable (it is), but because I thought it would be a fun (yes) and easy start (lol nope) to this project. Mondrian was a Dutch painter who changed his name in 1906 from Pieter Cornelis
WURFL.js is JavaScript that detects device models of smartphones, tablets, smart TVs and game consoles accessing your website. Only WURFL.js Basic, Standard, and Pro services will detect iPhone and iPad models. The free WURFL.js Lite will only return generic iPhone and iPad results. Important Note: More recent iPads will impersonate a desktop browser through the User-Agent string. WURFL.js Basic,
Promiseは非同期処理をベースにした並列処理の実装方法の一種です。Promiseでは並列処理の各タスクが必ず1回実行されることが保証され、タスクとタスクからの結果を取得する処理を分離することできます。また、タスクの並列処理/直列処理をユーザーが自由に制御することができます。 ECMAScript Language Specification 6th EditionにPromiseが追加されたことから、しばらくの間JavaScriptの非同期処理に関する話題の中心はPromiseになると思われます。 Node.jsでも既にPromise対応したモジュールも多く、Promiseでのみ非同期処理を提供しているモジュールも存在します。Promiseを使用する機会は今後必然的に増えていくでしょう。 今回のエントリーでは、Node.jsでPromiseを使用する方法を説明します。コード例を中心に理
https://www.youtube.com/watch?v=VkTCL6Nqm6Y 1 comment | 0 points | by WazanovaNews ■ comment by Jshiike | 約1時間前 OSCON 2014におけるInstagramのWebチーム責任者であるPete Huntの講演。PeteはInstagramに異動する前は、FacebookのPhoto/Video/Product Infraチームに在籍。 今回は、InstagramのwebサイトInstagram.comにおいて、シングルページアプリの課題である最初の読込みスピードを上げるために、どのような工夫をしたかについて紹介してくれてます。 Instagram.comのJavaScriptファイルは、縮小化後で9.5MB & gzip圧縮後で2.5MB。そのサイズだと、一つのファイルにまとめ
When you use reusable components (whether through convention, a framework like Fruit Machine or React, or directly using the emerging Web Components standard), you might find that components ship with polyfills. Your page may end up containing multiple polyfills for the same feature. You might also find that these polyfills all use slightly different implementations, and it’s not immediately obvio
ものすごく遅レスですが、LLDiver で @esehara さんの LT であった話。 forやめろ、あるいは「繰り返し」という呪縛から逃れるために 簡単に言うと、 1~10 までを出力する方法を複数考えるというもの。 for, while, 再帰, goto etc.. と出て、途中で終わっちゃったので結論はよくわかりませんでしたが、 Node ではどれも使わずにできるな、と思ったのでちょっと例を出してみます。 ちなみに、タイトルでネタバレしている通りイベントループの話です。 そしてよくある「イベントループとは何か」「なぜ止めてはいけないのか」「process.nextTick() とは何か」「setImmediate() と何が違うのか」 などを解説する良い例だったので、書いてるうちに実はそっちがメインの解説となりました。 サンプルの実行結果は Node v0.11.13 です。(書
なんとも今さら感のある話題ですが、知らない人もいるかもしれないので備忘録。 アニメーションを順番に動かすやり方には色々ありますが、僕はさくっと便利に使える $.Deferred がお気に入りです。 $(element).animate() だけ使って複数のアニメーションを順番に動かそうとすると、コールバック関数の入れ子地獄になるんですよね。 3つのアニメーションだけでもこのありさまです。 $("#elem_1").animate({width: "30px"}, {duration: 800, complete:function(){ $("#elem_2").animate({width: "40px"}, {duration: 400, complete:function(){ $("#elem_3").animate({width: "50px"}, {duration: 200})
#7 Socket.IO Theme 第9回目のテーマは Socket.IO です。全編英語です。 今回は Socket.IO@1.0 公開を記念して、日本で開催した Socket.IO Meetup で来日した、開発者である @rauchg さんをお迎えし、Socket.IO をテーマに 「Socket.IO を作ったモチベーション」から、「Socket.IO@1.0 での変更点」や「Socket.IO@2.0 の話」などをしました。 ちょうどこの時期にポストされた、彼の同僚であり Express や Mocha の作者である TJ Holowaychuk の、 Farewell Node.js などをネタに、「他の言語で実装した場合」の話などもしました。 今回も Qiita で事前に質問を集め その中のいつくかは紹介しています。質問くださったみなさんありがとうございました。 エピソード
.each()の話 jQueryの.each()を使うと,JavaScriptのオブジェクトか配列を対象にした繰り返しを簡単に記述できる.*1 var list = [0,1,1,2,3,5,8,13]; $.each(list, function(index, elem){ console.log(elem * 2); }); // 0 VM2035:4 // 2 VM2035:4 // 2 VM2035:4 // 4 VM2035:4 // 6 VM2035:4 // 10 VM2035:4 // 16 VM2035:4 // 26 VM2035:4 で,このeachにはもう一つ書き方がある. var list = [0,1,1,2,3,5,8,13]; $.each(list, function(){ // さっきは引数にindex, elemを指定していた console.log(
tompawlak.org is coming soon This domain is managed at
a minimal, ui-focused programming language for web designers clicking on ".try-it" toggles class "hidden" on ".info-box" Try It Getting Started Insert uilang.js in your page, write some uilang as shown above in a simple <code> element and use CSS to show, hide and animate things. Download 1KB Build Interfaces Create popovers, tabs, galleries, overlays and more using a language specifically designe
CoffeeScriptのリファクタリング - ワザノバ | wazanova CoffeeScriptのリファクタリングと聞いたので、いてもたってもいられなくなった。まず、お題の結果を見ずにやってみる。 これが元のコード $(document).ready -> photoHTML = (photo) => "<li> <a id='photo_#{photo.id}' href='#{photo.url}'> <img src='#{photo.url}' alt='#{photo.alt}' /> </a> </li>" $.ajax url: '/photos' type: 'GET' contentType: 'application/json' onSuccess: (response) => for photo in response.photos node = $(phot
One of the most exciting new features coming in JavaScript ES6 is a new breed of function, called a generator. The name is a little strange, but the behavior may seem a lot stranger at first glance. This article aims to explain the basics of how they work, and build you up to understanding why they are so powerful for the future of JS. Run-To-Completion The first thing to observe as we talk about
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く