Skip to content

Instantly share code, notes, and snippets.

View nrobinson2000's full-sized avatar

Nate Robinson nrobinson2000

View GitHub Profile
#include "Particle.h"
SYSTEM_MODE(SEMI_AUTOMATIC);
SYSTEM_THREAD(ENABLED);
SerialLogHandler usbLogHandler(LOG_LEVEL_TRACE);
#define CLOUD_TIMEOUT 60000 // how many ms are acceptable for lost cloud connection (needs to be > 45sec)
#define CLOUD_MAXRETRY 5 // how many unsuccessful connection attempts befor a System.reset
#define SECOND_MS 1000
@nrobinson2000
nrobinson2000 / cehs-install.sh
Last active December 6, 2018 20:47
Script to install po on CEHS computers
#!/bin/bash -li
echo "
Are you ready to install po-util?
Please be sure to follow any prompts or instructions
during the installation process."
read -rp "ENTER / CTRL-C: "
echo "
@nrobinson2000
nrobinson2000 / comfortable-swipe.conf
Created September 8, 2019 17:03
Configuration for comfortable-swipe
# Comfortable Swipe converts touchpad swipe gestures to keyboard commands. You
# may edit this configuration file if you have different keyboard shortcuts
# that you would like to use. You can ignore a gesture by commenting out with
# a pound(#) symbol.
#
# Refer to https://www.linux.org/threads/xdotool-keyboard.10528/ for a list of
# keycodes you can use.
#################
# MISCELLANEOUS #
@nrobinson2000
nrobinson2000 / manifest.json
Created December 27, 2020 21:23
Workbench/neopo manifest.json for redbearduo
{
"version": "1.0.0",
"toolchains": [
{
"firmware": "deviceOS@source",
"compilers": "[email protected]",
"debuggers": "[email protected]",
"platforms": [1],
"scripts": "[email protected]",
"tools": "[email protected]"