This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "d2eb373.3f50cc8", | |
"type": "tab", | |
"label": "Flow 2" | |
}, | |
{ | |
"id": "92070e99.486ef", | |
"type": "serial in", | |
"z": "d2eb373.3f50cc8", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Import time, decimal, serial, GPIO, reg expr, sys, and pygame modules | |
import os | |
import sys | |
from time import * | |
from decimal import * | |
import serial | |
import re | |
import pygame |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Copyright (c) 2017, Ubiquity Robotics | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
# Derived from https://gist.github.com/bradmontgomery/2219997#file-dummy-web-server-py-L26 | |
# Added the feature to read the post body and print it to console. | |
# Not useful if the post body isn't json | |
# Usage:: | |
# ./print_json_posts.py [<port>] | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
import SocketServer | |
import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import serial | |
from serial.serialutil import SerialException | |
import sys | |
import select | |
import tty | |
import termios | |
def key_available(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <MCUFRIEND_kbv.h> | |
#include <Adafruit_GFX.h> // Core graphics library | |
// wiring with UNO or Mega2560: | |
//--------------POWER Pins-------------------------------- | |
// 5V connects to DC 5V | |
// GND connects to Ground | |
// 3V3 do not need to connect(NC) | |
//--------------LCD Display Pins-------------------------- | |
// LCD_RD connects to Analog pin A0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "6bf977c3.4c5c68", | |
"type": "tab", | |
"label": "OPS24--A", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "6b995d18.2cd584", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "38ae5584.60dc7a", | |
"type": "tab", | |
"label": "OPS24--A", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "f22dee6b.be4d4", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5,15,25,35,45,55 * * * * tar -C / -cvf $HOME/backup/files-`/bin/date +\%Y-\%m-\%d-\%H\%M`.tar --files-from=$HOME/backup/files.list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% sudo udevadm monitor | |
monitor will print the received events for: | |
UDEV - the event which udev sends out after rule processing | |
KERNEL - the kernel uevent | |
KERNEL[101.778427] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5 (usb) | |
KERNEL[101.778735] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0 (usb) | |
KERNEL[101.778948] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1 (usb) | |
KERNEL[101.779325] bind /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5 (usb) | |
UDEV [101.831018] add /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5 (usb) |