Skip to content

Instantly share code, notes, and snippets.

View jotasprout's full-sized avatar
💭
Making long overdue updates

Jay Sprout jotasprout

💭
Making long overdue updates
View GitHub Profile
@jotasprout
jotasprout / getArtistDataCron.py
Created April 3, 2019 13:57
Gets LastFM listeners and playcount stats for an artist, all their albums, and all their tracks
import requests
import json
import pprint
import time
import artistsData
import musicBrainz
import lastFM
date = time.strftime("%Y-%m-%d")
@jotasprout
jotasprout / bmiCalculator.js
Created February 27, 2019 15:46
BMI calculator (for Articulate Storyline)
var p = GetPlayer();
var BMI = 0;
var bodyDesc = "dummy";
// Convert input_feet, input_inches, and pounds from Storyline variables to JavaScript variables
var input_feet=(p.GetVar("input_feet"));
var input_inches=parseInt(p.GetVar("input_inches"));
var pounds=(p.GetVar("pounds"));