Found from https://gist.github.com/889297
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
wget http://nodejs.org/dist/node-v0.4.9.tar.gz
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
wget http://nodejs.org/dist/node-v0.4.9.tar.gz
site :opscode | |
cookbook 'apt' | |
cookbook 'statsd', git: 'https://github.com/librato/statsd-cookbook.git' | |
cookbook 'graphite', git: 'https://github.com/hw-cookbooks/graphite.git' |
This is a basic guide on how to learn Elm rather than actually teach you. I'm going to mostly link to resources that I feel are valuable and try to "teach you how to fish".
The main purpose is to accelerate your learning and save you a lot of googling and weeding through bad explinations.
const {useCallback, useEffect, useReducer, useRef} = require('react'); | |
let effectCapture = null; | |
exports.useReducerWithEmitEffect = function(reducer, initialArg, init) { | |
let updateCounter = useRef(0); | |
let wrappedReducer = useCallback(function(oldWrappedState, action) { | |
effectCapture = []; | |
try { | |
let newState = reducer(oldWrappedState.state, action.action); |