$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]| defmodule Expng do | |
| defstruct [:width, :height, :bit_depth, :color_type, :compression, :filter, :interlace, :chunks] | |
| def png_parse(<< | |
| 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, | |
| _length :: size(32), | |
| "IHDR", | |
| width :: size(32), | |
| height :: size(32), |
| # /etc/hosts | |
| 127.0.0.1 localhost | |
| # Block traffic from these ad sites: | |
| #+ doubleclick domains | |
| 0.0.0.0 doubleclick.net | |
| 0.0.0.0 www.doubleclick.net | |
| 0.0.0.0 cm.g.doubleclick.net | |
| 0.0.0.0 www.cm.g.doubleclick.net |
| <br /><br /> | |
| # React Native: Animated | |
| ReactEurope 2015, Paris - Spencer Ahrens - Facebook | |
| <br /><br /> | |
| ## Fluid Interactions | |
| - People expect smooth, delightful experiences |
| /** | |
| * The examples provided by Facebook are for non-commercial testing and | |
| * evaluation purposes only. | |
| * | |
| * Facebook reserves all rights not expressly granted. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | |
| * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| (defn merge-sort | |
| "sorting the given collection with merge-sort" | |
| [coll] | |
| (if (or (empty? coll) (= 1 (count coll))) | |
| coll | |
| (let [[l1 l2] (split-at (/ (count coll) 2) coll)] | |
| ;recursive call | |
| (loop [r [] l1 (merge-sort l1) l2 (merge-sort l2)] | |
| ;merging | |
| (cond (empty? l1) (into r l2) ;when l1 is exhausted |
| #!/bin/bash | |
| # Source: http://blog.stefanxo.com/2014/02/clean-up-after-docker/ | |
| docker images -f dangling=true -q | xargs -r docker rmi -f #Adding -f forces removal |
| # Steps to build and install tmux from source. | |
| # Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
| VERSION=2.7 | |
| sudo yum -y remove tmux | |
| sudo yum -y install wget tar libevent-devel ncurses-devel | |
| wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
| tar xzf tmux-${VERSION}.tar.gz | |
| rm -f tmux-${VERSION}.tar.gz | |
| cd tmux-${VERSION} |