Skip to content

Instantly share code, notes, and snippets.

View AlexRiina's full-sized avatar

Alex Riina AlexRiina

View GitHub Profile
@AlexRiina
AlexRiina / glucometer_export.py
Last active July 25, 2021 06:24
Export FreeStyle Lite data from serial USB cable to CSV
""" Extract FreeStyle Lite data from serial USB cable to CSV.
Defaults for Linux or MacOS systems """
import argparse
import glob
import os
import re
import serial
from csv import writer
// jQuery Plugin (Change Type)
(function ($) {
$.fn.cryptForm = function (key, toCryptSel) {
var form = $(this);
var braintree = Braintree.create(key);
form.submit(function () {
form.find(toCryptSel).each(function () {
this.type = 'password';
$(this).val(braintree.encrypt($(this).val()));