Skip to content

Instantly share code, notes, and snippets.

View Danw33's full-sized avatar
🦄
🪄 ✨ 💻

Daniel Wilson Danw33

🦄
🪄 ✨ 💻
View GitHub Profile
@Danw33
Danw33 / eu_cookie_banner.js
Created November 8, 2018 14:32 — forked from bavington/eu_cookie_banner.js
Simple EU Cookie Law Banner JavaScript
@Danw33
Danw33 / git2go-checkout-branch.go
Created May 11, 2018 14:48 — forked from danielfbm/git2go-checkout-branch.go
How to do a git checkout branch using git2go
package main
import (
"errors"
"log"
"github.com/libgit2/git2go"
)
func checkoutBranch(repo *git.Repository, branchName string) error {
checkoutOpts := &git.CheckoutOpts{
@Danw33
Danw33 / states_hash.json
Created April 25, 2016 12:21 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",