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
# modified from https://gist.github.com/simoncozens/699aa96e98321e19a0a2cccbce994c47 | |
# python3 activity.py DDMMYY DDMMYY | |
import sys | |
import requests | |
from dateutil.parser import parse | |
from dateutil.relativedelta import relativedelta, FR | |
from datetime import datetime | |
import os |
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 random | |
import string | |
import uharfbuzz as hb | |
import sys | |
from fontTools.ttLib import TTFont | |
def generate_random_string(fp): | |
f = TTFont(fp) | |
cmap = f.getBestCmap() | |
length = random.randint(3, 100) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 requests | |
from dateutil.relativedelta import relativedelta, FR | |
from datetime import datetime | |
lastweek = datetime.utcnow().replace(hour=0,microsecond=0) + relativedelta(weekday=FR(-1)) | |
headers = {"Authorization": "bearer "+GITHUB_TOKEN} | |
def run_query(query): | |
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) |
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
def lerp(v1, v2, t): | |
return v1 + t * (v2 - v1) | |
def lerpPoint(p1, p2, t): | |
return lerp(p1[0], p2[0], t), lerp(p1[1], p2[1], t) | |
def circle(p, r): | |
x, y = p | |
d = r * 2 | |
oval(x - r, y - r, d, d) |
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
backend = "glx"; | |
glx-no-stencil = true; | |
glx-copy-from-front = false; | |
glx-swap-method = 1; | |
blur-background = false; | |
blur-kern = "7x7box"; | |
# Shadow | |
shadow = true; # Enabled client-side shadows on windows. | |
no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. | |
no-dnd-shadow = true; # Don't draw shadows on DND windows. |