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
#!/usr/bin/env python3 | |
###################### | |
# User configuration # | |
###################### | |
subreddit = "" | |
queues = ["modqueue"] | |
thresholds = [ | |
(20, "There are {count} in {queue}. {url}") |
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
"use strict"; | |
const gulp = require("gulp"); | |
var plumber = require("gulp-plumber"); | |
var sass = require("gulp-sass"); | |
var sourcemaps = require("gulp-sourcemaps"); | |
var exec = require("gulp-exec"); | |
var rename = require("gulp-rename"); | |
var tap = require("gulp-tap"); | |
var handlebars = require("handlebars"); | |
var glob = require("glob"); |
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
(?: | |
// argument | |
([0-9]+) // 1 integer, argument | |
| | |
(\\p{Alpha}\\w*|_\\w+) // 2 identifier, argument | |
)? | |
(?: | |
(\\:) // 3 separator | |
// format_spec |
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
// ==UserScript== | |
// @name Approve time ago | |
// @author Enigma | |
// @namespace reddit_approve_time_ago | |
// @include /^https?://(.+\.)?reddit.com\// | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
($(function() { |
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
fun achievements { | |
var self = new TB.Module('Achievements') | |
self.shortname = 'Achievements' | |
// Default settings | |
self.settings['enabled']['default'] = true | |
self.register_setting('save', { | |
'type': 'achievement_save', | |
'default': '' |
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
#!/usr/bin/env python3 | |
# Config | |
watch_dir_path = "D:\\Documents\\LoL Subreddit\\CSS\\Main v2.0\\" | |
main_file = "theme.less" | |
include_ext = ".less" | |
exclude_files = ["style-darkmode.less", "style.less"] | |
extend_css_file = "css/champion-flair.css" | |
output_file = "css/stylesheet.css" |
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 praw, requests | |
from requests.auth import HTTPBasicAuth | |
def connect_reddit(oauth_key, oauth_secret, username, password, useragent, oauth_scopes={}): | |
r = praw.Reddit(user_agent=useragent) | |
# Get oauth token | |
client_auth = HTTPBasicAuth(oauth_key, oauth_secret) | |
headers = {"User-Agent": useragent} | |
data = {"grant_type": "password", "username": username, "password": password} |
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
// A file generated using Blink | |
// http://myanimelist.net/forum/?topicid=1133533 | |
// | |
// Blink settings: | |
// Save as: _covers.scss | |
// Selector: animetitle:before | |
// Here's an example of what it should generate | |
.animetitle[href*="/1/"]:before{background-image: url('http://cdn.myanimelist.net/images/anime/4/19644.jpg')} | |
.animetitle[href*="/50/"]:before{background-image: url('http://cdn.myanimelist.net/images/anime/2/17841.jpg')} |
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
# Config | |
hb_input = "hb_acct_data.json" | |
db_name = "hb_to_mal.db" | |
hb_user_agent = "Hummingbird anime info puller:v0.1" | |
mal_user_agent = "Hummingbird to MAL migration thingy:v0.1" | |
enable_mal_migrate = True | |
hb_username = "" |
NewerOlder