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| const flattenTco = ([first, ...rest], accumulator) => | |
| (first === undefined) | |
| ? accumulator | |
| : (Array.isArray(first)) | |
| ? flattenTco([...first, ...rest]) | |
| : flattenTco(rest, accumulator.concat(first)) | |
| const flatten = (n) => flattenTco(n, []); | |
| console.log(flatten([[1,[2,[[3]]]],4,[5,[[[6]]]]])) |
| # For SCSS-Lint v0.31.0 | |
| linters: | |
| BangFormat: | |
| enabled: true | |
| space_before_bang: true | |
| space_after_bang: false | |
| BorderZero: |
| # first: | |
| lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
| sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
| # To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| # get the merchant name of a product in a shopping cart | |
| @cart.items.first.purchasable.user.merchant.first_name | |
| # => NoMethodError (undefined method for nil:NilClass) | |
| @cart.items.first.purchasable.user.merchant.first_name | |
| # ^ | |
| # \------ This item not exists (disposed, destroyed, ...) | |
| # But any method in the chain could also be nil! |
#ABOUT
#INSTALLATION Run following commands:
curl https://gist.githubusercontent.com/mikepenz/a8a4a52f67a391895a4c/raw/0e142a381ddce88e7489d0753388bd9778cb246d/multitail.sh | sh;
source ~/.bashrcThis will start the script multitail.sh and call source ~/.bashrc afterwards
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| $xs: ( max: 767px ); | |
| $sm: ( min: 768px ); | |
| $md: ( min: 992px ); | |
| $lg: ( min: 1200px ); | |
| $sm-only: ( min: map-get($sm, min), max: map-get($md, min) - 1 ); | |
| $md-only: ( min: map-get($md, min), max: map-get($lg, min) - 1 ); | |
| @mixin breakpoint($map) { | |
| $query: ""; | |
| @if map-has-key($map, min) { $query: append($query, "(min-width: #{map-get($map, min)})") } |
| /* global jest */ | |
| var superagent = jest.genMockFunction().mockReturnThis(); | |
| var Response = jest.genMockFunction().mockImplementation(function() { | |
| this.status = 200; | |
| this.ok = true; | |
| }); | |
| Response.prototype.get = jest.genMockFunction(); |
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/.git