Skip to content

Instantly share code, notes, and snippets.

View esparkman's full-sized avatar

Evan Sparkman esparkman

View GitHub Profile
~/Development/emmr-frontend(branch:master*) » npm start evansparkman@Evans-MacBook-Pro
> [email protected] start /Users/evansparkman/Development/emmr-frontend
> concurrently --kill-others --prefix '[{index} - {time}]' --timestamp-format 'H:mm:ss.SSS' 'npm run dev:server' 'npm run dev:watch'
[1 - 9:55:00.078]
[1 - 9:55:00.078] > [email protected] dev:watch /Users/evansparkman/Development/emmr-frontend
[1 - 9:55:00.078] > webpack --color -w
[1 - 9:55:00.078]
[0 - 9:55:00.084]
@esparkman
esparkman / setup-es6-linting.md
Created February 17, 2016 22:50
Linting ES6+Babel+JSX in Atom

Setup ES6+Babel+JSX Linting with Atom

This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.

Steps

  1. Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint)
  2. Run npm install --save-dev eslint-config-airbnb babel-eslint eslint-plugin-react from your project root.
  3. Add "extends": "eslint-config-airbnb" to your .eslintrc
@esparkman
esparkman / gist:1c0417f6f1fff96e92ec
Created February 17, 2016 15:30
Restore Atom.io
apm install --packages-file packages.list
Could not find gem 'sidekiq (~> 4.0.0) ruby' in rubygems repository https://redacted:[email protected]/.
Source contains 'sidekiq' at: 3.5.3
1) Error:
User#test_0001_should be valid:
ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: null value in column "email" violates not-null constraint
DETAIL: Failing row contains (980190962, null, null, null, 2015-01-20 03:17:42, 2015-01-20 03:17:42, f, pending_review, f).
: INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-01-20 03:17:42', '2015-01-20 03:17:42', 980190962)
<!DOCTYPE html>
<html>
<head>
<link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
<link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">
<link rel="stylesheet" href="main.css">
</head>
2.1.3 :001 > hasarry = [{"foo" => "bar"}, {"baz" => "buzz"}]
=> [{"foo"=>"bar"}, {"baz"=>"buzz"}]
2.1.3 :002 > hasarry[0]["foo"]
=> "bar"
2.1.3 :003 > hasarry[0]["baz"]
=> nil
2.1.3 :004 > hasarry[1]["baz"]
=> "buzz"
2.1.3 :005 >
###########################
## Configuration
############################
#
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 5000
Running Chef on 107.170.236.21...
Checking Chef version...
Installing Berkshelf cookbooks to 'cookbooks'...
DEPRECATED: Your Berksfile contains a site location pointing to the Opscode Community Site (site :opscode). Site locations have been replaced by the source location. Change this to: 'source "http://api.berkshelf.com"' to remove this warning. For more information visit https://github.com/berkshelf/berkshelf/wiki/deprecated-locations
Resolving cookbook dependencies...
Using apt (2.3.8)
Using chef-solo-search (0.5.1) from https://github.com/edelight/chef-solo-search (at master)
Using build-essential (2.0.1) from https://github.com/opscode-cookbooks/build-essential (at master)
Using chef_gem (0.1.0)
Using java (1.22.0)
http://www.charlesproxy.com/latest-release/download.do