Skip to content

Instantly share code, notes, and snippets.

@tyrelsouza
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 http://my.vudu.com
// 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 http://letterboxd.com/import
//
// 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
lmc_assign_keyboard('MACROS');
COM = "g430n1"
TANK = "lft"
grid = {}
grid[192] = function (direction) -- [1, 1]
lmc_xpl_command("sim/flight_controls/flaps_up")
end
-- assign logical name to macro keyboard
lmc_assign_keyboard('MACROS');
local function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
@tyrelsouza
tyrelsouza / logbook.json
Last active September 5, 2019 05:04
LOGBOOK
[
{
"Flight Date": "2019-08-31",
"Plane": "Warrior II",
"Tail Number": "N43337",
"FROM": "KEEN",
"TO": "KEEN",
"Remarks": "normal to/l, shortfield to/l, std turns, constant speed, constant descents",
"Landings": 2,
"Airplane SEL": 1.1,
@tyrelsouza
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); })();
/*
https://github.com/ramboxapp/community-edition/wiki/Inject-JavaScript-Code
@tyrelsouza
tyrelsouza / README.md
Last active January 15, 2019 06:02
HamBot for Discord
@tyrelsouza
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 https://freenode.net/kb/answer/registration 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
LASTFM_USER= os.environ['LASTFM_USER']