You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
fluxフレームワーク、今は Redux が一番アツい様子なので触ってみた。 github.com (追記 2015-10-03 18:15 APIや用語が大幅に変わったので更新した) Redux の経緯 2015-05-30 に公開された "The Evolution of Flux Framework" という記事がある。 medium.com Reduxはその PoC 的な実装だったんだけど、実用的ということでめっちゃ流行っているみたい。 Initial commit も 2015-05-30 だった。 Initial commit · rackt/redux@8bc1465 · GitHub 最近の flux フレームワークだと fluxible と flummox が人気だったけど、 flummoxのページには 4.0 will likely be the last major
Enter the name of a fruit: horsey(document.querySelector('input'), { source: [{ list: ['banana', 'apple', 'orange'] }] }); Lazy load the fruits, useful for AJAX! (loading starts when the field is focused) horsey(document.querySelector('input'), { source (data, done) { var items = [ 'banana', 'apple', 'orange' ]; setTimeout(() => done(null, [{ list: items.filter(item => item.indexOf(data.input) !==
added logic for well-known symbols: Symbol.match Symbol.replace Symbol.split Symbol.search actualized and optimized work with iterables: optimized Map, Set, WeakMap, WeakSet constructors, Promise.all, Promise.race for default Array Iterator. optimized Array.from for default Array Iterator. added core.getIteratorMethod helper. uses enumerable properties in shimmed instances - collections, iterators
// Create a physics world, where bodies and constraints live var world = new p2.World({ gravity:[0, -9.82] }); // Create an empty dynamic body var circleBody = new p2.Body({ mass: 5, position: [0, 10] }); // Add a circle shape to the body var circleShape = new p2.Circle({ radius: 1 }); circleBody.addShape(circleShape); // ...and add the body to the world. // If we don't add it to the world, it won
Most of the open-source software that I write is done at least partly for learning purposes. The majority of it isn’t used by many people, I just wrote it to implement some existing idea, so I could understand how it works. One such project is Canopy, a PEG parser generator that I originally wrote as part of a very protracted yak shave – while writing a Capybara driver to run in the browser, I fou
Lightweight cross-browser context persistence library à la pushState, via changing the hash fragment. Mainly meant for freeloading serverless web applications which need to store some state in the URL. Also comes with a super simple API. Prevents repeated processing - if the same hash is pushed twice consecutively it will not be processed twice. This is useful for example when you have some expens
W’ve seen that Futures/Promises emerge as a logical meaning for asynchronous functions like in this Node example : fs.readFile(‘…’) // => a Future/PromiseSimilarly, we w’d like to represent the meaning of functions like this someEventSource.on('event', ...) // => ?The second code shares the asynchronous semantics of the first, hence the use of callbacks in both cases. But instead of a single futur
TIP Prior to v0.7.0-alpha.1 Two.js requires Underscore.js and Backbone.js Events. If you're already loading these files elsewhere then you can build the project yourself and get the file size even smaller. For more information on custom builds check out the source on github. # Overview Overview # Focus on Vector Shapes Two.js is deeply inspired by flat motion graphics (opens new window). As a resu
In this post we are going to explore how to use ES7 features to define traits with a brand new module: traits-decorator. ES6 gave us the simplicity to create classes in a more declarative way. With ES6 modules we have also a better and clear definition of what we are exporting. Those aspects were a primary goal of Cocktail. Decorators If you are not familiar with decorators, they are pretty simila
In this article we will give you a quick overview about open source javascript chart libraries (mostly D3 based). Just leave a comment if you miss one. If you have to create a very custom/special type of chart I would always recommend to use just D3 or Raphael without a wrapper library. NVD3 uses the convention of reusable charts for D3 from Mike Bostock. Currently NVD3 is getting a major refactor
es-collections is an ES6/ES2015 (JavaScript) collections library including Stack, Queue, and PriorityQueue data structures. Map and Set were added in ES2015. This library adds other frequently used collections with an interface consistent with those additions. You can simulate a stack and a queue with a JavaScript array, but using the collections provided here: Provides clarity of intent to your f
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く