Skip to content

Instantly share code, notes, and snippets.

tyrelsouza / generate_letterboxd_csv_from_vudu.js
Last active September 28, 2020 18:46 — forked from tiegz/generate_letterboxd_csv_from_vudu.js
Import VUDU rental history into a CSV format readable by Letterboxd.Currently only grabs up to 100 items.
// Run this in the browser bar: var el = document.createElement("script"); el.src=URL; document.body.appendChild(el);
// 1. Login to
// 2. Run this script (if popups are blocked, temporarily unblock popups from Vudu in your browser)
// 3. Grab the downloaded CSV file, and load at
// How it works: this script is inserted into the Vudu page via a bookmarklet, grabs your session key, and
// makes a call to Vudu's api. Then it parses the response and creates a CSV, which it then opens in a page as a data-uri.
function buildCSV(data) {
-- assign logical name to macro keyboard
COM = "g430n1"
TANK = "lft"
grid = {}
grid[192] = function (direction) -- [1, 1]
-- assign logical name to macro keyboard
local function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
tyrelsouza / logbook.json
Last active September 5, 2019 05:04
"Flight Date": "2019-08-31",
"Plane": "Warrior II",
"Tail Number": "N43337",
"TO": "KEEN",
"Remarks": "normal to/l, shortfield to/l, std turns, constant speed, constant descents",
"Landings": 2,
"Airplane SEL": 1.1,
tyrelsouza / rambox.discord.js
Created September 3, 2019 14:25
Completely ignore blocked people on discord with Rambox
(()=>{ let css=`
div[class^="messageGroupBlocked"] {display:none;}
var ss = document.createElement("style");
ss.type = "text/css"; ss.innerHTML = css;
document.getElementsByTagName("head")[0].appendChild(ss); })();
tyrelsouza /
Last active January 15, 2019 06:02
HamBot for Discord
tyrelsouza / MOTD.txt
Last active August 4, 2018 13:24
Positive Python Intro Message
Hello and welcome to Positive Python, the friendly place on Freenode for
Pythonistas, Python Programmers, Programmers, and People to chat. We have
had some problems with spammers joining the channel so we have had to set
the room to only allow users who are registered with Freenode to chat.
Registering your nickname is super easy, and Freenode even has a guide
with how to do this, in which the second paragraph explains why we've
done this.
So please check out and we
// include the library code:
#include <dht.h>
#define dht_apin A0
#include <LiquidCrystal.h>
dht DHT;
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2, temp = dht_apin;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
import argparse
import json
import os
import pylast
from slacker import Slacker
from sys import platform as _platform
import time