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
<TaskerData sr="" dvi="1" tv="5.9.2"> | |
<Task sr="task5"> | |
<cdate>1581857845453</cdate> | |
<edate>1581877298764</edate> | |
<id>5</id> | |
<nme>Ensure Lineage Loader</nme> | |
<pri>100</pri> | |
<Action sr="act0" ve="7"> | |
<code>664</code> | |
<Str sr="arg0" ve="3">%test</Str> |
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 json | |
import asyncio | |
import logging | |
from collections import defaultdict | |
from telethon import TelegramClient, utils | |
logging.basicConfig(level=logging.INFO) |
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 ctypes import c_float | |
from os import urandom | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
from math import isfinite | |
def gen_floats(N): | |
out = [] | |
while len(out) < N: | |
b = bytearray(urandom(4096)) |
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 asyncio | |
import logging | |
import time | |
from collections import defaultdict | |
from telethon import TelegramClient | |
from telethon import events | |
logging.basicConfig(level=logging.INFO) |
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 asyncio | |
import logging | |
import os | |
from collections import defaultdict | |
from telethon.errors import MessageNotModifiedError | |
from telethon import TelegramClient | |
from telethon import events | |
from telethon.tl.types import DocumentAttributeSticker, DocumentAttributeFilename | |
from telethon.tl.functions.messages import GetStickerSetRequest |
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 | |
import random | |
def thing(val): | |
val += (-4, -3, -2, -1, 1, 2, 3, 4)[random.getrandbits(3)] | |
if val < 0: return 0 | |
if val > 255: return 255 | |
return val |
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 python theme_conv.py file.[atthex|attheme] | |
import sys | |
from os import path | |
import re | |
RE_LINE = re.compile(r'^(\w+)=(.+)$') | |
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 multiprocessing import Pool | |
import random | |
import re | |
from collections import defaultdict | |
primes = set() | |
best_prime = None | |
best_score = None | |
template = ( | |
"BBBBBBABBBBBB" |
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
# midi library is from here: https://github.com/vishnubob/python-midi | |
import midi | |
import sys | |
import os | |
if len(sys.argv) != 2: | |
print "Usage: {0} <midifile>".format(sys.argv[0]) | |
sys.exit(2) | |
midifile = sys.argv[1] |
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
#include <GDIPlus.au3> | |
#include <Color.au3> | |
_GDIPlus_Startup() | |
Global $hBaseTile = _GDIPlus_ImageLoadFromFile("t.png") | |
Global Const $TILE_SIZE = _GDIPlus_ImageGetWidth($hBaseTile) | |
Global $hInput = _GDIPlus_ImageLoadFromFile("in.png") |
NewerOlder