Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dagpacket
dagpacket / test.py
Last active August 26, 2021 22:57
test.py
import serial
import json
class EmptySerialResponseException(Exception):
pass
SERIAL_PORT_NAME = '/dev/ttyS1'
def open_locker(locker):
try:
@dagpacket
dagpacket / gist:ba836e95f40e5e25cfd68acdbf9c2b1e
Last active September 14, 2021 20:16
bootstrap-show-modal.js
/**
* Author and copyright: Stefan Haack (https://shaack.com)
* Repository: https://github.com/shaack/bootstrap-show-modal
* License: MIT, see file 'LICENSE'
*/
(function ($) {
"use strict"
var i = 0