Skip to content

Instantly share code, notes, and snippets.

Developer Cheat Sheets

This are my cheat sheets that I have compiled over the years. Tired of searching Google for the same things, I started adding the information here. As time went on, this list has grown. I use this almost everyday and this Gist is the first bookmark on my list for quick and easy access.

I recommend that you compile your own list of cheat sheets as typing out the commands has been super helpful in allowing me to retain the information longer.

function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [ {name: "Run Query", functionName: "runQuery"} ];
ss.addMenu("HTTP Archive + BigQuery", menuEntries);
}
function runQuery() {
var projectNumber = 'httparchive';
var sheet = SpreadsheetApp.getActiveSheet();
@fengshuo
fengshuo / air-quality.html
Created June 13, 2015 10:33
Air Quality Index Charts(BJ)
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Air Quality of Beijing</title>
<style>
body{
padding-top: 20px;
padding-bottom: 100px;
@fengshuo
fengshuo / cat-colors.json
Created March 5, 2016 11:44
PostCSS basic setup and test with Gulp
{
"colorList": {
"c1" : ["#000000", "#000011"],
"c2" : ["#000011", "#000022"],
"c3" : ["#000022", "#000033"],
"c4" : ["#000033", "#000044"],
"c7" : ["#000044", "#000055"],
"c8" : ["#000055", "#000066"],
"c9" : ["#000066", "#000077"],
"c10" : ["#000077", "#000088"]
@fengshuo
fengshuo / 0-react-hello-world.md
Created March 14, 2016 13:29 — forked from danawoodman/0-react-hello-world.md
React Hello World Examples
@fengshuo
fengshuo / index.html
Created November 24, 2016 01:33
force layout
<!DOCTYPE html>
<meta charset="utf-8">
<style>
rect{
fill: white;
}
circle {
stroke: #000;
stroke-opacity: .5;
}
@fengshuo
fengshuo / index.html
Last active November 27, 2016 18:45
force layout large
<!DOCTYPE html>
<meta charset="utf-8">
<style>
rect{
fill: white;
}
circle {
stroke: #000;
stroke-opacity: .5;
}
@fengshuo
fengshuo / gist:b0fe2721cbc0f6cae2ac380c4596cb8f
Last active March 15, 2017 23:33 — forked from lucasdinonolte/gist:4016361
Copy current git branch to clipboard
For those, who don't know how to make this work: create a file, e.g. git_branch_name_to_clipboard.sh in your user directory with following content:
`git branch | grep "*" | awk '{ print $2 }' | pbcopy`
or use this to remove the new line when you paste:
`git branch | grep "*" | awk '{ print $2 }' | tr -d '\n' | pbcopy`
Then in `.gitconfig file`, which is located in your user folder, add these lines under [alias]:
@fengshuo
fengshuo / git-tag-delete-local-and-remote.sh
Created April 26, 2017 00:42 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName