Skip to content

Instantly share code, notes, and snippets.

View bmjjr's full-sized avatar
💭
Working on https://www.bomquote.com/

Bob Jordan bmjjr

💭
Working on https://www.bomquote.com/
View GitHub Profile
//Title: Button Debouncing using a State Machine
//Author: Chris Guichet
//Date: Jan 15, 2018
//
//Description:
// -A State Machine is a useful tool to organize complex code
// -Think of it like the next step beyone "If Else" statements
// -This example code uses a State Machine to handle tac switch debouncing
// -It also has a "Hold" function to enable interaction with long button presses
// -The tac switch is used to control a buzzer and an LED, it can multitask
//Title: Button Debouncing using a State Machine, Complex Version
//Author: Chris Guichet
//Date: Jan 15, 2018
//
//Description:
// -A State Machine is a useful tool to organize complex code
// -Think of it like the next step beyone "If Else" statements
// -This example code uses a State Machine to handle tac switch debouncing
// -It also has a "Hold" function to enable interaction with long button presses
//
@bmjjr
bmjjr / main.py
Created December 22, 2021 05:39 — forked from Lauszus/main.py
Siglent SDS2000X plus hack
import hashlib
SCOPEID = '0000000000000000'
Model = 'SDS2000X+'
# Note that 'AWG' should be used for the 'FG' option
# If you have the 100 MHz model, then first upgrade it to 200 MHz, then 350 MHz and finally 500 MHz
bwopt = ('25M', '40M', '50M', '60M', '70M', '100M', '150M', '200M', '250M', '300M', '350M', '500M', '750M', '1000M', 'MAX', 'AWG', 'WIFI', 'MSO', 'FLX', 'CFD', 'I2S', '1553', 'PWA')
hashkey = '5zao9lyua01pp7hjzm3orcq90mds63z6zi5kv7vmv3ih981vlwn06txnjdtas3u2wa8msx61i12ueh14t7kqwsfskg032nhyuy1d9vv2wm925rd18kih9xhkyilobbgy'
@bmjjr
bmjjr / 2019-https-localhost.md
Created February 6, 2021 01:29 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@bmjjr
bmjjr / sds_scdp.py
Created September 6, 2020 19:54 — forked from mobilinkd/sds_scdp.py
Screendump From Siglent DSO via VXI-11
#!/usr/bin/env python
import argparse
import visa, sys
from pyvisa.constants import StatusCode
from PIL import Image
from cStringIO import StringIO
def screendump(device, filename):
### Keybase proof
I hereby claim:
* I am bmjjr on github.
* I am bmjjr (https://keybase.io/bmjjr) on keybase.
* I have a public key ASBc8rlNdvGrooCxI_lxC-u01gob6MDg-qWJIJ-EATom-go
To claim this, I am signing this object:
@bmjjr
bmjjr / README.rst
Created May 14, 2017 15:22 — forked from rduplain/README.rst
Demonstrate use of fixture with Flask-SQLAlchemy and Flask-Testing.

Demonstrate use of fixture with Flask-SQLAlchemy and Flask-Testing. February 13, 2011 Ron DuPlain <ron.duplain@gmail.com>

Post any feedback to: flask@librelist.org

Get this gist:

git clone git://gist.github.com/824472.git Flask-SQLAlchemy-Fixture
cd Flask-SQLAlchemy-Fixture
@bmjjr
bmjjr / gist:3f154e2ab881f60a08aea8574779e3c1
Created May 14, 2017 14:53 — forked from darvid/gist:8578fab23b8ab9e35903
cross-platform gevent-based WSGI server command for Flask-Script
@manager.command
def runserver(host="127.0.0.1", port=8000):
"""Run a gevent-based WSGI server."""
port = int(port)
wrapped_app = app
if app.config.get("DEBUG", True):
wrapped_app = werkzeug.debug.DebuggedApplication(app)
server = WSGIServer(listener=(host, port), application=wrapped_app,
https://home-assistant.io/atom.xml
https://engineering.hellofresh.com/feed
http://hundredminutehack.blogspot.com/feeds/posts/default
http://rightfootin.blogspot.com/feeds/posts/default
https://devblogs.nvidia.com/parallelforall/feed
http://www.androidxu.com/feeds/posts/default
http://journalpanic.com/index.xml
http://robbygrodin.com/feed
https://snarky.ca/rss
https://www.ossblog.org/feed

Keybase proof

I hereby claim:

  • I am bmjjr on github.
  • I am bmjjr (https://keybase.io/bmjjr) on keybase.
  • I have a public key ASAnT7aqDQQmgPHx6-y9IFc1261_ZWCel1A3KTmnGKXezAo

To claim this, I am signing this object: