Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
// default exports | |
export default 42; | |
export default {}; | |
export default []; | |
export default foo; | |
export default function () {} | |
export default class {} | |
export default function foo () {} | |
export default class foo {} |
#!/usr/bin/env bash | |
# | |
# This is a hack that allows you to express loop and conditional processing | |
# of an array of items in terms of function definitions. | |
# | |
# My initial motivation came from the need to process an array of items, and | |
# then for those successfully processed items, do another different processing | |
# step, and similarly for the failed items; perform further processing/filtering | |
# steps for each failed/successful items. | |
# |
const { map, flatMapDeep, add, flow } = require('lodash/fp') | |
const data = [ | |
{ | |
id: 1, | |
type: 'group', | |
name: 'Colors', | |
items: [ | |
{ id: 2, type: 'item', name: 'Red' }, | |
{ id: 3, type: 'item', name: 'Purple' }, |
If someone asked me the question "what layout should I use for my Go code repository?", I'd start by asking back "what are you building: an executable, or a library?"
Create a directory named however you want your final executable to be called (e.g. "mycommand"), change into that directory, and create the following files: