Skip to content

Instantly share code, notes, and snippets.

View connor's full-sized avatar

Connor Montgomery connor

View GitHub Profile
@connor
connor / jedmund.js
Last active December 15, 2015 08:48 — forked from jedmund/gist:5233111
function getUser(username) {
var config = Instagram.config;
var url = config.api_host + "/v1/users/" + searchUsers(username, _usernameToId) + "/?access_token=" + config.access_token + "&callback=?";
$.getJSON(url, function(data) {
console.log(data);
});
}
function searchUsers(q, callback) {
@connor
connor / gist:1591714
Created January 10, 2012 22:53 — forked from founddrama/gist:1013614
a jshint pre-commit hook for git
#!/bin/sh
# A pre-commit hook for git to lint JavaScript files with jshint
# @see https://github.com/jshint/jshint/
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904