(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
( function ( global ) { | |
'use strict'; | |
var Promise, PENDING = {}, FULFILLED = {}, REJECTED = {}; | |
if ( typeof global.Promise === 'function' ) { | |
Promise = global.Promise; | |
} else { | |
Promise = function ( callback ) { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#first install all the things: | |
sudo apt-get install flac ffmpeg mp3splt libav-tools shntool | |
# Okay first lets do an MP3: | |
# input files: | |
# --> cd.ape | |
# --> cp.cue | |
# (there are other options, like bitrate, but this is just the bare bones) | |
avconv -i cd.ape cd.mp3 |
A
we want to become a part of another repository.B
we want repo A
to be merged into.A
to be located under a sub-directory in repo B
and repo A
history stored in a dedicated repo B
branch.A
be changed or corrupted.You may want to employ the Parcel backed boilerplate that implements the solution described below.
/* Helper buddy for removing async/await try/catch litter 🗑 */ | |
function O_o(promise) { | |
return promise.then(data => { | |
if (data instanceof Error) return [data] | |
return [null, data] | |
}).catch(err => [err]) | |
} | |
/* Look ma, no try/catch */ | |
async function usageExample(params) { |
I heard some points of criticism to how React deals with reactivity and it's focus on "purity". It's interesting because there are really two approaches evolving. There's a mutable + change tracking approach and there's an immutability + referential equality testing approach. It's difficult to mix and match them when you build new features on top. So that's why React has been pushing a bit harder on immutability lately to be able to build on top of it. Both have various tradeoffs but others are doing good research in other areas, so we've decided to focus on this direction and see where it leads us.
I did want to address a few points that I didn't see get enough consideration around the tradeoffs. So here's a small brain dump.
"Compiled output results in smaller apps" - E.g. Svelte apps start smaller but the compiler output is 3-4x larger per component than the equivalent VDOM approach. This is mostly due to the code that is usually shared in the VDOM "VM" needs to be inlined into each component. The tr