Skip to content

Instantly share code, notes, and snippets.

View jaredwolff's full-sized avatar

Jared Wolff jaredwolff

View GitHub Profile
@jaredwolff
jaredwolff / launch.json
Created November 29, 2019 04:41
Particle launch.json For Debugging
{
"version": "0.1.0",
"configurations": [
{
"type": "cortex-debug",
"request": "attach",
"name": "Particle Debugger (photon, p1, electron)",
"servertype": "openocd",
"interface": "swd",
"device": "STM32F205RG",
c9c985852e18c79e648b16804d66b75b3e1ee304b7b04a7cb130e23cc5182d838280e6ed0f3ffbf0794c2c1b1461ee5159519928a3ca72503024d60964403636
//this is a function that fires when the webapp receives a POST request
function doPost(e) {
//Return if null
if( e == undefined ) {
Logger.log("no data");
return HtmlService.createHtmlOutput("need data");
}
//Parse the JSON data
Verifying my Blockstack ID is secured with the address 1LFoSmNTezfytJyu4GDjJ174PoXGSyBKq https://explorer.blockstack.org/address/1LFoSmNTezfytJyu4GDjJ174PoXGSyBKq
@jaredwolff
jaredwolff / continuous_capture.py
Created November 2, 2018 20:06
Saleae Logic 8 - Long Term Capture for Current and Voltage Logging (Python Script)
#!/usr/bin/env python3
# One common issue is that Saleae records traces into memory, which means that
# it can't handle very long captures. This example shows how to use scripting to
# do long recordings over time. There will be brief gaps every time Saleae saves
# the old recording and starts a new one.
import os
import time