- How to generate an MP4 with H.265 codec using FFmpeg?
- H.265 HEVC support in High Sierra
- Converting WebM to MP4 Using FFmpeg
| const { generate, parse, t, traverse } = require('./babel'); | |
| const source = ` | |
| const babel = "cool"; | |
| function test(babel) { | |
| return babel; | |
| } | |
| `; | |
| // var babel = "cool"; |
| // vscode-keybindings for navigation with I/J/K/L and additional functionality with surrounding characters | |
| // Place your key bindings in this file to overwrite the defaults | |
| // ALT + I/J/K/L: up/left/down/right | |
| // ALT + SHIFT + I/J/K/L: mark text up/left/down/right | |
| // CTRL + J/L: send cursor to start/end of line | |
| // CTRL + ALT + J/L: send cursor to start/end of word | |
| // CTRL + ALT + U/O: send cursor to "wordPartLeft"/"wordPartRight" | |
| // CTRL + ALT + SHIFT + U/O: mark from cursor to "wordPartLeft"/"wordPartRight" | |
| // CTRL + ALT + Y: got to declaration |
https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff
While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it mu
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.