is gftools qa depricated?
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
# 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 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
def remap(value, inputMin, inputMax, outputMin, outputMax): | |
inputSpan = inputMax - inputMin # FIND INPUT RANGE SPAN | |
outputSpan = outputMax - outputMin # FIND OUTPUT RANGE SPAN | |
valueScaled = float(value - inputMin) / float(inputSpan) | |
return outputMin + (valueScaled * outputSpan) | |
test01 = remap(0, -100, 100, 20, 250) | |
print(test01) |
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
MINI-M1 ๐็ฆ ~/Google-Fonts/gf-fork-packager | |
10072 ๐ : gftools packager "Chilanka" fonts/ -p [~] | |
Font Family "Chilanka" is on Google Fonts under "ofl". | |
Using upstream.yaml from google/fonts for Chilanka. | |
Do you want to edit the current upstream configuration? | |
Your options y=yes,[n]=no:y | |
temp file name is /var/folders/ht/8b6qb9pj7csc3pn8bgwwx3j80000gn/T/upstreamodbvjvef.yaml | |
Creating package with | |
----- upstream configuration (no comments, normalized) ----- | |
name: Chilanka |
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 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) |
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
# To use this script, place it in a directory with a clone of the | |
# Google Fonts "fonts" directory and a text file from GF-Glyphssets. | |
# . | |
# โโโ GF_Latin_African.txt | |
# โโโ fonts | |
# โโโ gf-glyphset-check.py | |
# | |
# See links below: | |
# | |
# https://github.com/google/fonts |
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
<hr> | |
<div dir="auto" class="Solitreo-Regular" style="font-size: 14pt">ืฉืืชื, ืืืกืฃ, ืืืืื, ืืืื, ืืฉืจืื ืืืก ืืงื, ืืืก ืืืืืืืืก ื'ืืืื ืืื'ืืก, ืงื ื'ืืก ืจืืงืืืื ืื ืื ืืื ื'ืืจ, ืกืื ืืื ืงืืจ ื ืื'ื. ืื ืงื ื'ืืก ืืื, ืืื ืืื ื ืงืื ืกืืื ืกืืื, ืื ืืื ืกืืืื', ืืืกืคืืจื ืงื ืื ืืื ืืจืืจืืฉ, ืืืกืคืืืืก ืื ืื ืืืืืจืื ืื ืืื ืื ืงื ืื ืืื ืืจืืืืฉ ืืื ื'ืื'ื ืคืืก ืื ืืื ืืืื! ื</span> | |
<hr> | |
<div dir="auto" class="Solitreo-Regular" style="font-size: 14pt">ืื ืืื ืืื ื ืชืื ืืืชืขืจืืืช ืฉืจืืจืืชืืช ืืืืื ืืคืจืืืื, ืืืฉืคืืชื, ืืืขืื ื, ืืืืืคืช ืืืชืืื ืฉืื ืืื ืืคืืืขื ืืืืืื ืื ืืฉืื ืืคืื ืื ืืื ืืืื ืืืื ืช ืืืืง ืืคื ื ืืชืขืจืืืช ืื ืคืืืขื ืืืื ืื ืืื ืืืื ืืืืจืืช ืืืืฉืื, ืืืฆืคืื ืืืืช; ืืืจืืช ืื ืืืืืช ืืช ืืืืืช ืืืืืจ ืืช ืืชื ืื ืืช ืืืื ืชื ืืืชืช ืืืื ืืืชื ืื ืืืืื ืชื, ืืืื ืื ืืฆืืืืจ, ืืจืฉืืช ืืืืื ืื ืืจืฉืืช ืืจืืื, ืืจื ืืืจืื, ื ืืื, ืคืืืื ืืฉืืืจืช ืืฆืืืช</span> | |
<hr> | |
<div dir="auto" class="Solitreo-Regular" style="font-size: 14pt">ืงืืื ืื ืืื ืื ืื ืืื ื ืืกื ืคืืจืจื ืื ืืืืืื ืืื ืืื ืืืืืื ืืื ืืืจืืืณืืก ืืืืืก ืกืื ืืขืื ืจืืืื ืื ืงืื ืกืืื ืกืื ืื ืืืืณืื ืงืืืคืืจืืืจืกืื ืืืก ืื |
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 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 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
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) |
NewerOlder