http://www.phy.mtu.edu/~suits/notefreqs.html
- Frequency: Hz
- Wavelength: cm
Based on A4 = 440Hz (equal-tempered scale)
const logEnhancer = (createStore) => (reducer, initialState, enhancer) => { | |
// Do stuff like wrap the reducer in a higher-order function. | |
const reducerWithConsoleLogs = (previousState, action) => { | |
const nextState = reducer(previousState, action); | |
console.log({ action, previousState, nextState }); | |
return nextState; | |
}; | |
return createStore(reducerWithConsoleLogs, initialState, enhancer); | |
}; |
http://www.phy.mtu.edu/~suits/notefreqs.html
Based on A4 = 440Hz (equal-tempered scale)
Slack channel: #tmp-react-typescript
An engineering manager that I have the privilege of working with just asked me for three expectations of a principal engineer for a project that he is working on to mentor senior engineers at Twilio. Here is the list that I came up with.
I understand that functions in JavaScript can take any number of arguments.
I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript.
Where are the methods available to all arrays (e.g. forEach
, map
, etc.) defined?
I can explain the difference between using a for
loop and the forEach
method.
Step One: Watch Mary Rose Cook Live Codes Space Invaders from Front-Trends. (The second worst conference name ever?)
Step Two: Fork this gist.
Step Three: Respond to this question in your fork: What is one approach you can take from this Mary's code and implement in your project?
Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.
// This will only work in environments that support ES6 Proxies. | |
// As of right now, that's pretty much only Firefox. | |
function Refrigerator(foods) { | |
this.foods = foods; | |
return new Proxy(this, { | |
get: function (receiver, name) { | |
if (name in receiver) { |
/* HSL */ | |
$teal: hsla(180%, 78%, 62%, 1); | |
$black: hsla(96%, 20%, 5%, 1); | |
$pink: hsla(339%, 100%, 56%, 1); | |
$yellow: hsla(61%, 100%, 54%, 1); | |
$white: hsla(0%, 0%, 100%, 1); | |
/* RGB */ | |
$teal: rgba(81, 234, 234, 1); | |
$black: rgba(12, 15, 10, 1); |
These are notes from the live-coding portions of the workshop. You're welcome to follow along using these as we work through the material. There might be slight deviations as I answer questions or through the very nature of live-coding.