Skip to content

Instantly share code, notes, and snippets.

View syoichi's full-sized avatar

Syoichi Tsuyuhara syoichi

View GitHub Profile
@uupaa
uupaa / requestAnimationFrame.md
Last active August 29, 2015 14:14
requestAnimationFrame を使うとジワジワとヒープが増えていく
function tick() {
    requestAnimationFrame(tick);
}
requestAnimationFrame(tick);

上記のコードをしばらく走らせた状態で、Chrome DevTools のプロファイラでリソース(ヒープメモリ)の様子がどうなっているか調べてみました。

@nakajmg
nakajmg / my_atom_settings.md
Created February 5, 2015 06:47
Atom settings

enable packages(without language support)

  • japanese-wrap
  • local-server
  • project-manager
  • color-picker
  • atom-color-highlight
  • autocomplete-plus
  • editorconfig
  • wordcount
@noromanba
noromanba / tabelog-honeststars.user.js
Last active August 29, 2015 14:14
Make Tabelog Stars more honest w/ Pager Extension for UserScript
// ==UserScript==
// @name Tabelog-HonestStars
// @namespace http://noromanba.flavors.me
// @description Make Tabelog Stars more honest w/ Pager Extension for UserScript
// @include http://tabelog.com/*
// @grant none
// @run-at document-end
// @noframes
// @version 2015.1.31.2
// @homepage https://gist.github.com/noromanba/cd313dd2b15fbc6b4949

Japanese translation from the original post in English.

原文: [Getting Literal With ES6 Template Strings by Addy Osmani] (http://updates.html5rocks.com/2015/01/ES6-Template-Strings)

#ES6のテンプレート文字列

従来のJavaScriptの文字列処理はPythonやRubyに比べて非力でしたが、ES6のテンプレート文字列はこの状況を根本的に覆します。(テンプレート文字列はChrome 41からサポートされています。)それによりプログラマはドメイン固有言語(domain-specific language、DSL)を定義する事が可能になります。以下はテンプレート文字列が提供する機能です。

  • 文字列の挿入
  • 式を文字列に埋め込む
@teppeis
teppeis / gist:c50743a60832560aa1df
Last active April 29, 2023 15:04
Break the Web: Object staticメソッドがES6で仕様変更になった件について

Break the Web: Object static methods no longer throw errors for primitives!

Object.keys等のstaticメソッドがES6で挙動が変わったことで面倒なことになってる話

何が変わったか

ES5でプリミティブを受け取ると例外を投げていたObject.keys等のメソッドが、ES6では例外を吐かなくなった。

  • Object.getPrototypeOf ( O )
  • Object.getOwnPropertyDescriptor ( O, P )
@teppeis
teppeis / gist:a48558a71a98d6bee6c9
Last active April 8, 2017 11:37
最近のFlowtype事情とReact+Flowtype連携

最近のFlowtype事情とReact+Flowtype連携

2015/01/15時点の情報です。

最近のFlowtype事情

v0.1.3が計画されてるけど、initial releaseのv0.1.0からはbugfixや細かな修正がほとんどで、大きな進化はしてない。 コミットもあまり活発ではない。 もしかしたら、Facebook社内でprivateブランチを育てていてまとまったところで出してくるのかも。 (JS等に比べて)開発者人口の少ないOCaml実装というのも、プルリクが集まりにくくOSS的な加速的進化が起きにくい原因かもしれない。

@benjamingr
benjamingr / gist:0237932cee84712951a2
Last active October 6, 2023 08:31
Promise unhandled rejection tracking global handler hook

Possibly Unhandled Rejection NodeJS Promise Hook

###Unhandled Rejection Tracking

Several promise libraries such as bluebird and when as well as some native promise implementations offer potentially unhandled rejection tracking. This means that the following:

Promise.reject(new Error("err")); // never attach a `catch`
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@noromanba
noromanba / google-chrome-gpg-error-39.x.mkd
Last active May 23, 2020 03:06
google-chrome-stable GPG error on apt