- この文章と、それに含まれる考察や各サービスへの脆弱性報告などはmala個人の活動であり、所属している企業とは関係ありません。
- 一方で私は、企業が閲覧履歴を収集して何をしたいのか、所属してる企業や他社事例について、ある程度詳しい当事者でもあります。
- 一般論として書けることは書けるが、(業務上知り得た知識で開示されてないものなど)個別具体的なことは書けないこともあり、また観測範囲に偏りがある可能性もあります。
/** | |
* Step 1: | |
* Create a string enum. This can be done with a TS enum type, | |
* or a sum type (union of strings). | |
*/ | |
// enum style | |
enum TokenType { | |
Text = "Text", | |
UserMention = "UserMention", |
h1 = {} | |
h1.default= [] | |
h1[:a] = h1[:a] << "hi" | |
h1[:b] = h1[:b] << "ho" | |
p h1 #=> {:a=>["hi", "ho"], :b=>["hi", "ho"]} | |
h2 = {} | |
h2.default_proc = ->(hash, key){ [] } | |
h2[:a] = h2[:a] << "hi" | |
h2[:b] = h2[:b] << "ho" |
So, you need to transpile classes to ES5 for some reason, but you need to do it in the browser.
Could we use a gross regular expression to get that done? Yes.
Should we? No, but it's far too late for that now.
試合ID,チーム,ホーム_アウェイ,回,選手,結果 | |
2015032701,巨人,home,1,坂本 勇人,左安 | |
2015032701,巨人,home,1,井端 弘和,遊ゴロ | |
2015032701,巨人,home,1,長野 久義,中2 | |
2015032701,巨人,home,1,阿部 慎之助,捕邪飛 | |
2015032701,巨人,home,1,村田 修一,中飛 | |
2015032701,巨人,home,2,坂本 勇人,右飛 | |
2015032701,巨人,home,2,井端 弘和,遊併打 | |
2015032701,巨人,home,2,高橋 由伸,四球 |
オフラインリアルタイムどう書く という、 @Nabetani さん主催のイベントを模したものを ESM の社内向けに行ったものです。
出題者: @mtsmfm スペシャルサンクス: @mattsan
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't
Tested under webpack-dev-server 1.7.0.
- Clone this gist
npm install
npm start
- Visit http://localhost:8080 (or http://192.168.x.x:8080) on multiple devices
- Edit entry.js and hit save