Skip to content

Instantly share code, notes, and snippets.

View silver2row's full-sized avatar
🧃
Cough, blur, dang!

set_ silver2row

🧃
Cough, blur, dang!
View GitHub Profile
@jilkka
jilkka / gpsDataWrite.py
Last active January 10, 2020 20:06
Write GPS data to a file using Python and GPSd
# Runs perfectly using Python 2.7.3 on Raspian.
# GPSD Official Documentation:
# http://www.catb.org/gpsd/gpsd_json.html
# Original GpsPoller script by Dan Mandle:
# http://www.danmandle.com/blog/getting-gpsd-to-work-with-python/
# Original readCoordinates funtion by recantha:
# https://github.com/recantha/picorder-v3/blob/master/picorder.py
# Additional modifications by Jacob Ilkka:
# http://blog.jacobilkka.com/python-gps-data-writer/
@jadonk
jadonk / AM335x_PRU.cmd
Last active June 1, 2024 04:01
PRU programming with Debian Stretch BeagleBoard.org IoT 2017-06-11 image
/****************************************************************************/
/* AM335x_PRU.cmd */
/* Copyright (c) 2015 Texas Instruments Incorporated */
/* */
/* Description: This file is a linker command file that can be used for */
/* linking PRU programs built with the C compiler and */
/* the resulting .out file on an AM335x device. */
/****************************************************************************/
-cr /* Link using C conventions */
@silver2row
silver2row / pusher
Created October 11, 2017 12:00
Getting Pusher to work on a sudo pip install pusher
Collecting pusher
Downloading pusher-1.7.2.tar.gz (155kB)
100% |████████████████████████████████| 163kB 51kB/s
Collecting six (from pusher)
Downloading six-1.11.0-py2.py3-none-any.whl
Collecting requests>=2.3.0 (from pusher)
Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
100% |████████████████████████████████| 92kB 93kB/s
Collecting urllib3 (from pusher)
Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
var b = require('bonescript');
var step = (function() {
var M1 = 1;
var M2 = 4;
var state = 0;
var enabled = 0;
return function(direction) {
if(!enabled) {
@silver2row
silver2row / gpsDataWrite.py
Created April 26, 2019 19:28 — forked from jilkka/gpsDataWrite.py
Write GPS data to a file using Python and GPSd
# Runs perfectly using Python 2.7.3 on Raspian.
# GPSD Official Documentation:
# http://www.catb.org/gpsd/gpsd_json.html
# Original GpsPoller script by Dan Mandle:
# http://www.danmandle.com/blog/getting-gpsd-to-work-with-python/
# Original readCoordinates funtion by recantha:
# https://github.com/recantha/picorder-v3/blob/master/picorder.py
# Additional modifications by Jacob Ilkka:
# http://blog.jacobilkka.com/python-gps-data-writer/
@silver2row
silver2row / AM335x_PRU.cmd
Created November 9, 2021 00:34 — forked from jadonk/AM335x_PRU.cmd
PRU programming with Debian Stretch BeagleBoard.org IoT 2017-06-11 image
/****************************************************************************/
/* AM335x_PRU.cmd */
/* Copyright (c) 2015 Texas Instruments Incorporated */
/* */
/* Description: This file is a linker command file that can be used for */
/* linking PRU programs built with the C compiler and */
/* the resulting .out file on an AM335x device. */
/****************************************************************************/
-cr /* Link using C conventions */