Skip to content

Instantly share code, notes, and snippets.

View FlorianGoussin's full-sized avatar
🙃

Florian Goussin FlorianGoussin

🙃
View GitHub Profile

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@FlorianGoussin
FlorianGoussin / bind-functions-to-this.js
Last active November 14, 2019 21:35
Bind private functions to this
function myFunc1() {
console.log(this.myProp)
}
function myFunc2() {}
const _p = {}
/**
* bind an array of functions to this
* WARNING: only works with named functions
* @param {object} instance pass the instance this