Skip to content

Instantly share code, notes, and snippets.

View mayhem's full-sized avatar
💭
Hell bent on total world domination!

Robert Kaye mayhem

💭
Hell bent on total world domination!
View GitHub Profile
@ercas
ercas / listenbrainz.R
Last active July 21, 2021 15:58
create graphs of listenbrainz data
library(dplyr)
library(ggplot2)
library(jsonlite)
library(lubridate)
library(stringr)
# load data ---------------------------------------------------------------
data <- fromJSON("ercas_lb-2021-07-21.json") %>%
flatten() %>%
@shawwwn
shawwwn / uping.py
Last active October 10, 2024 20:02
µPing: Ping library for MicroPython
# µPing (MicroPing) for MicroPython
# copyright (c) 2018 Shawwwn <[email protected]>
# License: MIT
# Internet Checksum Algorithm
# Author: Olav Morken
# https://github.com/olavmrk/python-ping/blob/master/ping.py
# @data: bytes
def checksum(data):
if len(data) & 0x1: # Odd number of bytes
@jotto
jotto / how_to_make_quickbooks_qbo.txt
Created November 3, 2010 19:56
QUICKBOOKS OL-222
Quickbooks OL-222 error help
Quickbooks QBO files are based on the OFX spec.
Instead of reading the spec, here are the actual real
world rules since Intuit doesn't appear to care about documentation or helping.
This is particularly useful if you want to avoid the "OL-222" error when
trying to import your own QBO files.
<STMTTRN>