A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team
TL;DR - Fogus and Jeremy Ashkenas published the underscore-contrib repo recently which is loaded with functional JavaScript goodness based on the popular underscore library. I walk through a few examples of how I use it in the hopes you’ll get interested in working out new ways to solve your own day-to-day issues. Table of Contents! Background How to get it Those promiscuous functions Dates… effin
This reference is an adaptation of the documentation at Underscore.js. It is interactive in its HTML5 form. Edit a CoffeeScript segment to try it. You can see the generated JavaScript when you write a CoffeeScript function by typing ‘show name’ after its definition. Example Underscore Underscore is a library for functional style programming. It provides 60-odd functions that support both the usual
JavaScript Advent Calendar 2011 (フレームワークコース) の9日目です。 せっかくの機会だったので、ものすごく気になってたけど、触る機会がなかった、Underscore.jsをいろいろと弄ってみました。 配列関係の便利メソッドの集合ライブラリなイメージでしたが、タイマーやユーティリティ関数、条件判断関数など、いろいろ機能があって面白いですね。 とりあえず、ひと通り実行しながら、すべての関数を触ってみました。 非常に見難くて恐縮ですが、以下のGoogleスプレッドシートにいろいろとメモを取っていったので、参考にしてください。 間違いなどあるかもしれませんし、自分自身理解しきっていないため説明がおかしい箇所があるかもしれません。 その際はご指摘いただけると助かります。超めんどくさかったので、自主的なアップデートは、たぶん、しません... リンク先: Unders
一ヶ月ぶりのブログPOSTです。先月は、色んなことがありました。大きくは3つ。 アメリカのボルチモア(メリーランド州。ワシントンDCから1時間弱ぐらいのところ)にて 5/16 - 19の日程で開催された、RailsConf2011に行ってきました。Ruby on Railsについて、様々な話を聞くことができ、とても勉強になりました。 ビッグサイトで開催された"WirelessJapan2011"のセッションで講演してきました(5/25)。内容は、HTML5を活用した、マルチデバイスでのWebアプリ開発について、概論説明。なにげに有料講演は初めての体験で、ちょっとどきどきだったのですが、比較的好評だったようす。こちらも、いい経験になりました。 僕のことでは無いのですが、会社の後輩(@elrana)が5/21-22の日程でニューヨークで開催された TechCrunchの24時間耐久 Hacka
JavascriptライブラリUnderscore.jsがすごい便利。 すごい便利なのにもかかわらず、あんまり日本語の情報がなかったので、公式のドキュメントをスピリチュアル抄訳してみた。 http://documentcloud.github.com/underscore/ Collection Functions each _.each(list, iterator, [context]) listの要素をイテレートする。すべての要素はiterator関数にyieldされる。iteratorには(element, index, list)の3つの引数が渡される。もしlistがJavascript Objectだった場合は(value, key, list)になる。 _.each([1, 2, 3], function(num){ alert(num); }); => alerts eac
Table of Contents Collections each, map, inject, detect, select, reject, all, any, include, invoke, pluck, max, min, sortBy, sortedIndex, toArray, size Arrays first, last, compact, flatten, without, uniq, intersect, zip, indexOf Functions bind, bindAll, delay, defer, wrap Objects keys, values, extend, clone, isEqual, isElement, isArray, isFunction, isUndefined Utility uniqueId, template Collection
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く