Skip to content

Instantly share code, notes, and snippets.

View xiongchengqing's full-sized avatar
🇨🇳
Never stop learning

Xiong,Cheng-Qing xiongchengqing

🇨🇳
Never stop learning
View GitHub Profile
@nrollr
nrollr / MySQL_macOS_Sierra.md
Last active July 24, 2025 13:35
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 :

@steveruizok
steveruizok / mapValues.ts
Created October 11, 2020 21:05
Map values.
export function remap<P, T>(
obj: { [key: string]: T },
fn: (value: T, index: number) => P
): { [key: string]: P } {
return Object.fromEntries(
Object.entries(obj).map(([id, value], index) => [id, fn(value, index)])
)
}