Those who have attended my talks on JavaScript performance are familiar with my propensity for using setTimeout() to break up long scripts into smaller chunks. When using setTimeout(), you’re changing the time at which certain code is execut... 続きを読む
2013-04-05 nextTick、setTimeout(fn, 0)の代わり setTimeout(fn, 0)より高速な関数は最近はこんな感じのを使うといいと思う。 var nextTick; if (typeof setImmediate === 'function') { nextTick = setImmediate; } else if (typeof process === 'object' && ... 続きを読む
JavaScript, uupaa.js | 15:20 | JavaScriptでの画像の動的/遅延読み込みといえば (new Image).src = URL; なんですが、タイムアウトやエラーの状況を把握したい時もあったりします。GoogleMapライクなアプリを作ってるときとか。今回ちょっと必要になったので... 続きを読む
Statistics Likes 0 Downloads 1 Comments 0 Embed Views 0 Views on SlideShare 13 Total Views 13 Effective JavaScript Ch.1 Presentation Transcript Effective JavaScript 第1章 @teppeis 2013/04/01 サイボウズ社内勉強会 ファーストクラスの関数と、オブ... 続きを読む
Creating, testing and maintaining a large JavaScript code base is not easy — especially since great resources on how to do this are hard to find. This page is a collection of the best articles, videos and presentations we've found on the top... 続きを読む
JSには型固定配列が実装されていてそれを使えばかなり高速化されるので型のある言語で書いたコードをTyped Array使ったJSコードにコンパイルすれば手で書いた型なしJSコードより高速になる 続きを読む
Google Analyticsが提供するJSは以下の様な初期化処理をおこなっている。 <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { // script要素の動的読み込み })(... 続きを読む
Although it's not trivial (for security reasons), it's possible to draw DOM content—such as HTML—into a canvas. This article, derived from this blog post by Robert O'Callahan, covers how you can do it securely, safely, and in accordance wit... 続きを読む
What's this? MDN has switched to Persona, a safe and simple way to sign in with just your e-mail address. Learn more about why Mozilla is using Persona. Returning members: sign in with Persona and you'll be connected to your MDN profile (all ... 続きを読む
Gnuplot 4.6.1 compiled to JS with Emscripten The API uses web-worker to start gnuplot (1.77MB, 460kB gzipd transmitted), so a decent HTML5 browser like firefox or chrome is required. No feature checks are done here, so nothing happens if your... 続きを読む
JavaScript, HTML5, ES.harmony, Chrome 1. はじめに、本記事は、HTML5 Advent Calendar 2012の参加(6日目)エントリーです。 当初は昨年のアドベントカレンダーでテーマにしたマイナーAPIをネタにして書こうかと考えていたのですが、探してもあまりピンとくる... 続きを読む
Statistics Favorites 4 Downloads 0 Comments 0 Embed Views 3 Views on SlideShare 58 Total Views 61 JS開発におけるTDDと自動テストツール利用の勘所 — Presentation Transcript JS開発における TDDと自動テスト ツール利用の勘所 2012.12.06 株式会社マピ... 続きを読む
2012-12-06 JSC Array optimization for adding new property ECMAScript JavaScript C++ VM JavaScriptCore JIT This is a blog post for 12/6 VM advent calendar. See http://qiita.com/advent-calendar/2012/vm for more nice blog posts :) Introduction E... 続きを読む
Want to receive a weekly email containing the scoop on our new titles along with the occasional special offer? Just click the button. (You can always unsubscribe later by editing your account information). Give us an email and a password (you... 続きを読む
Firefox学生マーケティングチーム(以下 学生マーケ)主催の勉強会を行い 「Add-Onは使っているけど、Add-Onの開発は未経験。興味を持っているけど、どうしたらいいかわからない!」 そんな学生を対象としたAdd-On勉強会を学生マーケで開き、少しでもFirefoxへ... 続きを読む
$ cd your_public_folder/ $ httpster Starting Server on port "3333" 続きを読む
Overview At SightMachine we are currently trying to replicate the functionality of SimpleCV in a JavaScript/CoffeeScript library we call SimpleCV.js. We are slowly attempting to reproduce all of the functionality in the python version of Simp... 続きを読む
A multi-transport async logging library for node.js. "CHILL WINSTON! ... I put it in the logs." Installation Installing npm (node package manager) curl http://npmjs.org/install.sh | sh Installing winston [sudo] npm install winston Motivation ... 続きを読む
an unobtrusive framework initiative for node.js No one agrees on frameworks. It's difficult to get consensus on how much or how little a framework should do. Flatiron's approach is to package simple to use yet full featured components and let... 続きを読む
swdyh (twitter / github / tumblr) 今日のスライド http://swdyh.github.com ブラウザ拡張開発 AutoPagerize ページの自動継ぎ足し http://autopagerize.net JavaScriptやRuby、Goに興味 システム開発に検索はつきもの 小規模なら全件走査 LIKE '%query%' それ... 続きを読む