Skip to content

Instantly share code, notes, and snippets.

View brossetti1's full-sized avatar

Brian Rossetti brossetti1

View GitHub Profile
// 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']

ECMAScript 6 git.io/es6features

Introduction

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:

@brossetti1
brossetti1 / useful react packages
Last active July 16, 2017 17:49
useful react packages
`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

Bisecting

First you start the bisect

git bisect start

Then you mark good and bad refs

git bisect good v2.6.18

git bisect bad master

BASH CHEAT SHEET - 0000001

This file contains short tables of commonly used items in this shell. In most cases the information applies to both the Bourne shell (sh) and the newer bash shell.

Tests (for ifs and loops) are done with [ ] or with the test command.

Checking files:

-r file    # Check if file is readable.
@brossetti1
brossetti1 / postgres-cheatsheet.md
Last active July 7, 2017 20:02 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL - 00000001

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

@brossetti1
brossetti1 / SQL cheatsheet
Created September 26, 2015 17:35 — forked from dannyc5/SQL cheatsheet
SQL cheatsheet
-- SQL Basic Syntax --
--initialize SQLite database w/ command line:
sqlite3 database_name.db
--helpful commands
.help -- list of commands
.tables -- see all tables
.mode column / .header on -- helpful for viewing
@brossetti1
brossetti1 / README.md
Created September 26, 2015 14:21 — forked from clhenrick/README.md
PostgreSQL & PostGIS cheatsheet (a work in progress)
@brossetti1
brossetti1 / psql_cheatsheet.md
Created September 26, 2015 14:20 — forked from sadfuzzy/psql_cheatsheet.md
PostgeSQL Cheatsheet

PostgreSQL Cheatsheet

PSQL main commands

Opening PostgreSQL console:

psql -h <hostname> -U <user> <db> # db is optional

Working with pgsql console