Skip to content

Instantly share code, notes, and snippets.

View phiniezyc's full-sized avatar

Chance phiniezyc

  • Atlanta, GA
View GitHub Profile
@phiniezyc
phiniezyc / react-bind.md
Created September 3, 2021 06:37 — forked from fongandrew/react-bind.md
Explaining why we bind things in React

Start With This

Before getting to React, it's helpful to know what this does generally in Javascript. Take the following snippet of code. It's written in ES6 but the principles for this predate ES6.

class Dog {
  constructor() {
@phiniezyc
phiniezyc / gist:e219e9707530b080b5e44c63ce91acc0
Created September 4, 2018 10:44 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@phiniezyc
phiniezyc / destructuring.js
Last active September 4, 2018 09:36 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Spread Operator
//Ex1:
Math.max(5, 6, 8, 9, 11, 999);
// 999
//Ex2:
const numbers = [5, 6, 8, 9, 11, 999];
Math.max(...numbers)
@phiniezyc
phiniezyc / webdev_online_resources.md
Created July 16, 2018 21:48 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@phiniezyc
phiniezyc / sample.md
Created March 24, 2018 05:19 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@phiniezyc
phiniezyc / README-Template.md
Created February 2, 2018 22:38 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@phiniezyc
phiniezyc / passport.js
Created November 19, 2017 09:03 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',