Skip to content

Instantly share code, notes, and snippets.

View proffalken's full-sized avatar

Matthew Macdonald-Wallace proffalken

View GitHub Profile
@proffalken
proffalken / exengpsserial.ino
Created February 28, 2018 15:26
Exen Mini Serial GPS Connection
#include <TinyGPS.h>
// Create our GPS Object
TinyGPS tracker;
// Hold the speed somewhere
float mph;
// How many satelites do we have in view?
@proffalken
proffalken / .vimrc
Created July 21, 2017 06:11
My .vimrc
"dein Scripts-----------------------------
"
" MAKE SURE YOU INSTALL github.com/Shougo/dein.vim FIRST!
"
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath^=~/.vim/repos/github.com/Shougo/dein.vim
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/mmw/.vim/bundles/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/mmw/.vim/bundles')
@proffalken
proffalken / heartrate-__init__.py
Last active June 13, 2017 18:44
Python Classes and Functions
"""
HeartRate - Use bluetooth low energy to detect heartrate
"""
import threading
import random
import ble
class HeartRate(threading.Thread):
@proffalken
proffalken / LICENSE
Last active February 26, 2017 07:36
PY3STATUS_CONNECTOR_DB
Copyright 2017 Matthew Macdonald-Wallace
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH

Keybase proof

I hereby claim:

  • I am proffalken on github.
  • I am proffalken (https://keybase.io/proffalken) on keybase.
  • I have a public key ASB-xl_50PZWUepYOVX_rZBQRRxE140RRTvLrnyOWPm0lgo

To claim this, I am signing this object:

@proffalken
proffalken / TTNDustSensor.ino
Last active February 3, 2017 20:10
TTN Dust Sensor
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
* This example sends a valid LoRaWAN packet with payload "Hello,
[
{
"type" : "tab",
"id" : "1c22d96f.2f9077",
"label" : "Devices To Dweet.io"
},
{
"x" : 129,
"field" : "",
"app" : "f4ab65e6.65e3e8",
function Decoder(bytes, port) {
// Decode an uplink message from a buffer
// (array) of bytes to an object of fields.
var decoded = {};
if (port === 10) {
decoded.pm25count = parseFloat((bytes[1] << 8) + "." + bytes[2]);
decoded.pm10count = parseFloat((bytes[3] << 8) + "." + bytes[4]);
}
@proffalken
proffalken / Dockerfile
Created January 25, 2017 14:56
Jenkins Blue Ocean Python Development
FROM jenkinsci/blueocean:latest
USER root
RUN apk add --no-cache --update \
python \
python-dev \
py-pip \
build-base \
&& pip install virtualenv \