In your command-line run the following commands:
brew doctorbrew update
| # 查看git上的个人代码量: | |
| git log --author="username" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' - | |
| # 统计每个人增删行数 | |
| git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done | |
| # 查看仓库提交者排名前 5 | |
| git log --pretty='%aN' | sort | uniq -c | sort -k1 -n -r | head -n 5 | |
| #贡献值统计 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| __author__ = 'maxim' | |
| import numpy as np | |
| import gensim | |
| import string |
| mkdir -p ~/chrome/chrome_dev_sess | |
| /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --disable-web-security --allow-running-insecure-content --user-data-dir="~/chrome/chrome_dev_sess" |
| function timeoutPromise(Pro, timeout) { | |
| return new Promise((resolve, reject) => { | |
| const start = Date.now(); | |
| let timeId = setInterval(() => { | |
| const now = Date.now(); | |
| if (now - start >= timeout) { | |
| clearInterval(timeId); | |
| reject('timeout'); | |
| } | |
| }, 16); |
| ```sh | |
| git config --global core.ignorecase false | |
| ``` |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>App</title> | |
| <link rel="stylesheet" href="//alifd.alicdn.com/npm/@alife/theme-243/0.1.2/next.min.css"> | |
| <link rel="stylesheet" href="/<%=htmlWebpackPlugin.options.pageName%>.css"> |
In your command-line run the following commands:
brew doctorbrew updateThis is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"| function shallowEqual(objA, objB) { | |
| if (objA === objB) { | |
| return true; | |
| } | |
| if ( | |
| !(typeof objA === 'object' && objA != null) || | |
| !(typeof objB === 'object' && objB != null) | |
| ) { | |
| return false; |
| registry=https://registry.npmmirror.com/ | |
| disturl=https://npmmirror.com/dist | |
| sharp_binary_host=https://npmmirror.com/mirrors/sharp | |
| sharp_libvips_binary_host=https://npmmirror.com/mirrors/sharp-libvips | |
| profiler_binary_host_mirror=https://npmmirror.com/mirrors/node-inspector/ | |
| fse_binary_host_mirror=https://npmmirror.com/mirrors/fsevents | |
| node_sqlite3_binary_host_mirror=https://npmmirror.com/mirrors | |
| sqlite3_binary_host_mirror=https://npmmirror.com/mirrors | |
| sqlite3_binary_site=https://npmmirror.com/mirrors/sqlite3 | |
| electron_mirror=https://npmmirror.com/mirrors/electron/ |