Skip to content

Instantly share code, notes, and snippets.

View philkeys's full-sized avatar

Phil Keys philkeys

View GitHub Profile
-- code for https://youtu.be/tp_5c6jaNQE
create table users (
id serial primary key,
first_name varchar(255) not null,
last_name text,
age int,
email text unique not null
);
@philkeys
philkeys / providerCompose.js
Created May 10, 2019 17:31 — forked from stolinski/providerCompose.js
ProviderComposer
function ProviderComposer({ contexts, children }) {
return contexts.reduceRight(
(kids, parent) =>
React.cloneElement(parent, {
children: kids,
}),
children
);
}
@philkeys
philkeys / airbnb.md
Created October 21, 2015 19:25 — forked from ha404/airbnb.md
Airbnb JavaScript Style Guide() {

Make an .eslintrc file in your project directory:

// Use this file as a starting point for your project's .eslintrc.
// Copy this file, and add rule overrides as needed.
{
  "extends": "airbnb"
}

Run this cmd in your shell:

# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management