is gftools qa depricated?
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
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 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 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 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 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">קאדח בנאדם אי בנאדם נאסי פוררו אי איגואו אין דינייידאד אין דיריג׳וס טודוס סון בעלה ראזון אי קונסיינסיה אי דיב׳ין קומפורטארסין לוס או |
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) |
NewerOlder