Skip to content

Instantly share code, notes, and snippets.

View chenzhihao's full-sized avatar

Zhihao Chen chenzhihao

View GitHub Profile
@chenzhihao
chenzhihao / golang-nuts.go
Created October 9, 2018 04:29 — forked from ryanfitz/golang-nuts.go
two ways to call a function every 2 seconds
package main
import (
"fmt"
"time"
)
// Suggestions from golang-nuts
// http://play.golang.org/p/Ctg3_AQisl
@chenzhihao
chenzhihao / 0_reuse_code.js
Created January 9, 2017 05:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt