Skip to content

Instantly share code, notes, and snippets.

View developius's full-sized avatar

Finnian Anderson developius

View GitHub Profile
@developius
developius / recursive-pull.sh
Created March 24, 2015 09:04
Recursively enter all sub directories of current directory and run git pull in them
for x in `ls`; do cd $x && git pull && cd ../; done
@developius
developius / GitHub-stats.js
Created March 23, 2015 22:10
jQuery functions to get data about a GitHub repository
jQuery.githubUser = function(username, callback) {
jQuery.getJSON('https://api.github.com/users/'+username+'/repos?callback=?',callback)
}
jQuery.githubRepoContributors = function(username, repo, callback) {
jQuery.getJSON('https://api.github.com/repos/'+username+'/'+repo+'/contributors'+'?callback=?',callback)
}
jQuery.githubOrgMembers = function(org,callback){
jQuery.getJSON('https://api.github.com/orgs/' + org + '/public_members?callback=?',callback)
import serial
from pynmea import nmea
ser = serial.Serial("/dev/ttyAMA0",9600)
gpgga = nmea.GPGGA()
while 1:
data = ser.readline()
if (data.startswith('$GPGGA')):
gpgga.parse(data)
print("Lat: ", gpgga.latitude
print("Long: ", gpgga.longitude