WIP某所で喋るための草稿。
当たり前のことを書く。当たり前のことが、当たり前にできない人へ。JavaScriptだから、当たり前のことをしなくていいと思っている人達へ。
- それぞれのファイルは、可能な限り参照透過な関数を提供する
- それぞれのファイルは、読み込んだだけでは副作用を起こさない
type point = (int, int); | |
type game_of_life = { | |
width: int, | |
height: int, | |
field: list(bool) | |
}; | |
let search_dirs: list(point) = |
import { createClient, GoogleMapsClient } from '@google/maps'; | |
export class GeoCodingService { | |
private geoCoder: GoogleMapsClient; | |
public constructor() { | |
this.geoCoder = createClient({ | |
key: 'YOUR-API-KEY', | |
}); |
/** | |
* Default configuration to lint | |
* the airbnb css style-guide. | |
* This file is taken from a pull request to Airbnb/css repo | |
* which intends to create a default preset that can be used | |
* in the future. Until it is merged, we will have the config here. | |
* https://github.com/airbnb/css/pull/23 | |
* Add more rules: http://stylelint.io/user-guide/rules/ | |
* Also, to understand better who the rules are named: | |
* http://stylelint.io/user-guide/about-rules/ |
Introduction
Typically programming languages are initially created by an individual, a small group of designers, or as a project within a busin
/* | |
React Componentのライフサイクル | |
- setState - componentWillReceiveProps | |
- かならずimmutableなsetStateにする | |
- 複数回の更新時は間引かれるので、++のようなインクリメントな処理はしない | |
- DOMから情報取得 - componentWillUpdate | |
- DOMの位置を変更 - componentDidUpdate | |
をそれぞれ書く場所が決まってる |
https://gist.github.com/azu/d5e92de127f76545ffc2 の続き
index.js
をおき、そこにコンポーネントを定義するコンポーネントの分類(TODO: 気に入ってない)
// ==UserScript== | |
// @name Youtube:floating transcript | |
// @namespace http://efcl.info/ | |
// @description apply panel floating | |
// @include https://www.youtube.com/watch?v=* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Usage: Open Transcript panel | |
// -> next transcript |
facebook/flux 2.0.32.1.0で追加されたflux/utils
について
see also 2015-08-17のJS: redux 1.0.0、flux-utils、Firefox 40 - JSer.info
はてなブックマーク検索を作りながらFlux Utilsについて学ぶ | Web Scratchにもっと具体的な解説を書きました