setup your BOT_TOKEN environment variable, and you're good to go!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(()=>{ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
NewerOlder