This file contains hidden or 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
# usage: sadfavs.py [-h] [-f FILE] -u USERNAME -p PASSWORD [-d] [--port PORT] | |
# [-a ADDRESS] [-n NUMBER] | |
# download sadpanda galleries with tags. archives all your favorites or all | |
# links (seperated by a newline) from a file. saves tags and general info for | |
# every gallery as a json file. to download galleries you need to run | |
# transmission with remote control enabled. | |
# optional arguments: | |
# -h, --help show this help message and exit |
This file contains hidden or 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
##### | |
# Installation: | |
# install python3 and install via pip "bs4" and "youtube_dl" | |
# | |
# Usage: | |
# python3 crawler.py -h | |
# | |
# Example: | |
# export your bookmarks with firefox and then crawl them for youtube and soundcloud by executing: | |
# python3 crawler.py -f bookmarks.html -w youtube.com -w youtu.be -w soundcloud.com |
This file contains hidden or 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 twiblur | |
// @namespace [email protected] | |
// @version 0.2 | |
// @description blur twitter images | |
// @author ZerataX | |
// @license Unlicense | |
// @match https://twitter.com/* | |
// @grant GM_addStyle | |
// @run-at document-start |
This file contains hidden or 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
from flask import Flask, request, abort, jsonify, request | |
import hashlib | |
import hmac | |
import requests | |
SERVER_LOCATION = 'https://homeserver.tld/' | |
SHARED_SECRET = b'registration_shared_secret see homeserver.yaml' | |
app = Flask(__name__) |
This file contains hidden or 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 discord | |
import asyncio | |
import cool_names | |
client = discord.Client() | |
invite = "https://discordapp.com/api/oauth2/authorize" | |
permissions = "201326592" | |
@client.event |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 discord | |
import asyncio | |
from datetime import datetime | |
import time | |
client = discord.Client() | |
This file contains hidden or 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
from bs4 import BeautifulSoup | |
import requests | |
def get_google_img(query): | |
""" | |
gets a link to the first google image search result | |
:param query: search query string | |
:result: url string to first result | |
""" |
This file contains hidden or 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
from PIL import Image | |
from matplotlib import pyplot as plt | |
import numpy as np | |
# Edit these values | |
file = "quecksilber_graphonly.BMP" | |
line_color = np.array([0, 192, 192]) | |
# colors in rgb | |
black = np.array([0, 0, 0]) | |
white = np.array([255, 255, 255]) |
This file contains hidden or 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
<div class="background"></div> | |
<div class="widget"> | |
<div class="center"> | |
<h1>漢字</h1> | |
<img id="object"> | |
</div> | |
</div> | |
<div class="info"> | |
<p>Source: | |
<a href="https://danbooru.donmai.us/posts/2735908" target="_blank"> |