Skip to content

Instantly share code, notes, and snippets.

# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help
TAG=$(shell git describe --tags --abbrev=0 | sed -Ee 's/^v|-.*//')
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@flashaim-kevin
flashaim-kevin / shell
Created January 6, 2018 00:11
terminal alias
# Raybird alias
alias lt="tree -u -g -h -L 1"
@flashaim-kevin
flashaim-kevin / shell
Created January 6, 2018 00:09
git alias
git config --global alias.lgod "log --graph --oneline --decorate"
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");