Skip to content

Instantly share code, notes, and snippets.

View kidonchu's full-sized avatar

Kidon Chu kidonchu

View GitHub Profile
@kidonchu
kidonchu / pull.go
Created November 3, 2016 13:47 — forked from sithembiso/pull.go
git pull using git2go
func (repo *Repo) Pull() error {
branch, err := repo.Branch()
if err != nil {
return err
}
// Get the name
name, err := branch.Name()
if err != nil {
return err
@kidonchu
kidonchu / 0_reuse_code.js
Created November 10, 2015 17:52
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