// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
const CONSUMER_KEY="consumer_key"; | |
const CONSUMER_SECRET="consumer_secret"; | |
const ACCESS_TOKEN="access_token"; | |
const ACCESS_TOKEN_SECRET="access_token_secret"; | |
const crypto = require('crypto'); | |
const qs = require("querystring") | |
const request = require("request"); |
I hereby claim:
- I am jayasimhan on github.
- I am jayasimhan (https://keybase.io/jayasimhan) on keybase.
- I have a public key whose fingerprint is 00F0 A901 2A82 85AD FA35 A348 A665 A8F9 01B8 9929
To claim this, I am signing this object:
-- Continuous View | |
CREATE STREAM s0 (x int); | |
CREATE CONTINUOUS VIEW cv AS | |
SELECT x, count(*) FROM s0 GROUP BY x; | |
INSERT INTO s0 (x) | |
SELECT x % 10 FROM generate_series(1, 1000) AS x; | |
-- Continuous Transform | |
CREATE STREAM s1 (x int); | |
CREATE CONTINUOUS TRANSFORM ct AS |
From this email thread on designing React UI and talking to a few folks, I understand that the disagreement largely is on passing the entire state object to all components.
I think all components should not share the same state object. Here's why.
Like pure functions. When we pass the a common state variable to all components, the render method would be triggered even for unrelated changes. The Virtual DOM does intelligent work, but that is only after React has regenerated the component (in the Virtual DOM). It might be cheap, but not necessary. In the unavoidable scenario where we have to pass state information to a componenty that it doesn't need, we should use the PureRenderMixin or implement shouldComponentUpdate on every(or selected nodes) component to avoid re-rendering everything all the time. Everywhere else we should just tie the component to the piece of state that it relies on.
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "I belong to Jay Masilamani. Please call xxx-xxx-xxxx if you find me." |