Skip to content

Instantly share code, notes, and snippets.

View shaunbharat's full-sized avatar

Shaun Bharat shaunbharat

  • Canada
  • 02:26 (UTC -04:00)
View GitHub Profile
@digitaljhelms
digitaljhelms / gist:4287848
Last active July 22, 2026 04:49
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@tetsuok
tetsuok / answer_pic.go
Created April 2, 2012 02:40
An answer of the exercise: Slices on a tour of Go
package main
import "code.google.com/p/go-tour/pic"
func Pic(dx, dy int) [][]uint8 {
// Allocate two-dimensioanl array.
a := make([][]uint8, dy)
for i := 0; i < dy; i++ {
a[i] = make([]uint8, dx)
}
{
// Name of the location
"name": "Drewry and Cactus-Gardenia Court",
// The URI of the location, locations are groups of stops - they can be
// intersections, stations or even specific addresses.
// generally a Location has more then one stop, but sometimes there are
// stops without an opposing direction stop and sits in a location by itself.
//
// Notes: