Skip to content

Instantly share code, notes, and snippets.

@pipitone
pipitone / howto.md
Last active May 1, 2020 10:59
Configure mbed-os-example-lorawan for the SX1272/62

These instructions are for customizing the following project: https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-lorawan/

Once you've imported it, then grab the sample mbed_app.json config file for your radio in the config/ folder and move it to mbed_app.json in the project root.

Edit it as follows:

Update the target_overrides catch-all ("*") section with your device info from TTN:

/* mbed Microcontroller Library
* Copyright (c) 2006-2015 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@pipitone
pipitone / unarticulate.user.js
Last active February 19, 2018 17:22
Scrapes text from Articulate Storyline 3. You'll need https://tampermonkey.net/
// ==UserScript==
// @name Unarticulate Storyline
// @namespace https://jon.pipitone.ca
// @version 0.1
// @description Scrapes text from Articulate Storyline 3 published modules at Queen's U, Canada
// @author Jon Pipitone <throwaway@pipitone.ca>
// @match https://qshare.queensu.ca/*
// @grant none
// ==/UserScript==
@pipitone
pipitone / qmed-computes-messy-data.md
Created December 30, 2017 03:57
QMED Computes Workshop on Messy Data 2017-12-06
@pipitone
pipitone / qmed-computes-spreadsheets.md
Created November 25, 2017 16:03
QMED Computes - Spreadsheet workshop

QMED Computes: Spreadsheets

Big ideas

Here are the big takeaways I'd like you to leave with:

  1. Plan for machines to read your data. Keep your data retangular. Be consistent with naming and values. Don't use colors to indicate anything meanful.

  2. Be able to explain your work. Decide what is raw data, and never edit it.

@pipitone
pipitone / intro-html.md
Last active July 6, 2017 10:36
Intro to markdown

Introduction to HTML

On thing I didn't mention was that often HTML is written so that nested elements are indented. This lets you see the structure of the document more easily:

<html>

<head>
  <title>Lol</title>
 

Etherpad sqlite to MySQL migration

  1. Install mysql and sqlite3 client

     apt install mysql-server-5.6 mysql-client-5.6 sqlite3
    
  2. Create the etherpad database (replace PASSWORD with some password)

     mysql -u root -p
    

create database etherpad;

Keybase proof

I hereby claim:

  • I am pipitone on github.
  • I am pipitone (https://keybase.io/pipitone) on keybase.
  • I have a public key whose fingerprint is 6A71 F478 BD30 4BF0 F187 010A 5F31 3E81 3CBA 3847

To claim this, I am signing this object:

@pipitone
pipitone / mt-summary.py
Created September 25, 2016 17:38
Create weekly summary pages of all classes and required prep by scraping MedTech
#!/usr/bin/env python
"""
Create medtech weekly summary pages
This utility fetches the medtech calendar feed, and then visit each event page
to scrape the required prep and other resources.
Usage:
mt-summary.py [options] [<date>]
.$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$.
$$$$$$$ $$$' '$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$' '$$$ $$$$$$$
$$$$$$$ $$$s__s$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$s__s$$$ $$ $$
$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$ $$
$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$
$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$
$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$' `$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$
$$$$$$$ $$$$$$$$$$$$$$$$$$p' 'q$' $' `$$$$$$$$$$$$$$$$$$$ $$$$$$$