Skip to content

Instantly share code, notes, and snippets.

View Zakaria1986's full-sized avatar
😶‍🌫️

Zakaria Khan Zakaria1986

😶‍🌫️
View GitHub Profile
@Zakaria1986
Zakaria1986 / MySQL_macOS_Sierra.md
Created December 9, 2018 10:26 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@Zakaria1986
Zakaria1986 / IndexedDB101.js
Created June 26, 2018 08:02 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});
@Zakaria1986
Zakaria1986 / git_cheat-sheet.md
Created May 28, 2018 15:33 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet