Skip to content

Instantly share code, notes, and snippets.

View ameyms's full-sized avatar

Amey Sakhadeo ameyms

View GitHub Profile
@ameyms
ameyms / go-github-client.go
Created October 24, 2013 17:15
Alternative go-github API
func main() {
watchers, pager, _, err := client.Activity.ListWatchers("o", "r")
if pager.HasNext() {
watchers, pager, _, err = pager.Next()
}
//..
//or:
watchers, pager, _, err = pager.Last()
}
@ameyms
ameyms / Gruntfile.js
Created May 4, 2013 11:02
Possible 'correct' implementation of handlebars in yeoman+grunt. Not sure.
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to match all subfolders: