This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`npm install -g yarn` | |
re-base | |
autoprefixer-stylus - https://github.com/jescalan/autoprefixer-stylus | |
stylus - http://stylus-lang.com/ | |
style-loader - https://github.com/webpack-contrib/style-loader | |
eslint | |
eslint-plugin-flowtype | |
eslint-plugin-jsx-a11y | |
eslint-plugin-react |
ECMAScript 6 git.io/es6features
ECMAScript 6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.
See the ES6 standard for full specification of the ECMAScript 6 language.
ES6 includes the following new features:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.barbarianmeetscoding.com/blog/2016/04/27/a-look-at-es6-maps/ | |
const wizardsArchive = new Map(); | |
wizardsArchive.set('jaime', { | |
name: 'jaime', | |
title: 'The Bold', | |
race: 'ewok', | |
traits: ['joyful', 'hairless'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
omniauth-facbook: https://github.com/brossetti1/shrine-s3-lamda-processing-example/commit/31baa924220e29270e59c568ed51643f25bcabd7 | |
shrine-setup: https://github.com/brossetti1/shrine-s3-lamda-processing-example/commit/76429d764e93332100378c2de37bac5a5710de6a | |
shrine-s3-seperate: https://github.com/brossetti1/shrine-s3-lamda-processing-example/commit/e56e03f50b2060373e0b14b39ec4aa5d775803ab | |
shrine-s3-full: https://github.com/brossetti1/shrine-s3-lamda-processing-example/pull/2/files |
from https://github.com/shakacode/style-guide-ruby#fileclass-level-comments
# Automatic conversion of one locale to another where it is possible, like
# American to British English.
module Translation
# Class for converting between text between similar locales.
# Right now only conversion between American English -> British, Canadian,
# Australian, New Zealand variations is provided.
class PrimAndProper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] ||= "test" | |
require File.expand_path("../../config/environment", __FILE__) | |
require "rspec/rails" | |
require "rspec/mocks" | |
require "capybara/rspec" | |
require "vcr" | |
require "rails/application" | |
require "webmock/rspec" | |
require "shoulda/matchers" | |
require "capybara-screenshot/rspec" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PROCESSES_TO_QUIT='bpos puma rake sidekiq spring rails$ ruby-debug phantomjs zeus passenger guard resque "node server.js" ruby$ node foreman fsevent_wat' | |
pgr() { | |
echo "Finding processes in list: $PROCESSES_TO_QUIT" | |
echo $PROCESSES_TO_QUIT | xargs -n 1 pgrep -l | |
} | |
pgk() { | |
echo "Killing processes in list: $PROCESSES_TO_QUIT" | |
echo $PROCESSES_TO_QUIT | xargs -n 1 pkill -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generic Utilities | |
using_port() { | |
ps -p $(lsof -i:$1 -Fp | cut -c 2-) | |
} | |
most_used() { | |
history | awk '{a[$4]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -20 | |
} |