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 urllib.parse import urlencode | |
| languages = ["en"] | |
| doneglyphs = " ABCDEFGHIJKLMNOPRQSTUVXYZabcdefghijklmnopqrstuvwxyz0123456789.,-" | |
| API_TOKEN = "Use your own, not mine." | |
| def get_a_page_of_headlines(page): | |
| params = urlencode( | |
| {"api_token": API_TOKEN, "languages": ",".join(languages), "page": page} |
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
| #include <stdio.h> | |
| #include "hb.hh" | |
| uint64_t const _hb_NullPool[(HB_NULL_POOL_SIZE + sizeof (uint64_t) - 1) / sizeof (uint64_t)] = { 0,0,0,0,0}; | |
| uint64_t _hb_CrapPool[(HB_NULL_POOL_SIZE + sizeof (uint64_t) - 1) / sizeof (uint64_t)]; | |
| #include "main-font-text.hh" | |
| #include "hb-open-type.hh" | |
| #define HB_DEBUG 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
| { | |
| "font_total": 3833, | |
| "kern": 3162, | |
| "liga": 2586, | |
| "frac": 2579, | |
| "sups": 2541, | |
| "mark": 2531, | |
| "aalt": 2518, | |
| "ordn": 2494, | |
| "locl": 2463, |
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
| from fontTools.ttLib import TTFont | |
| import fontTools.ttLib.tables.otTables as ot | |
| def coverage_for(lookup): | |
| coverage = set() | |
| for st in lookup.SubTable: | |
| coverage |= coverage_for_subtable(st) | |
| return coverage |
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 ninja_syntax import Writer | |
| import glyphsLib | |
| import argparse | |
| import ufoLib2 | |
| import os | |
| from fontTools import designspaceLib | |
| parser = argparse.ArgumentParser(description='Create a ninja file to build a font') | |
| parser.add_argument('input', metavar='INPUT') |
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
| { | |
| "arimo": { | |
| "format": "designspace", | |
| "glyphs": 3304, | |
| "masters": 2, | |
| "name": "arimo", | |
| "real": 1.6, | |
| "succeeded": false, | |
| "sys": 0.23, | |
| "user": 1.28 |
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 urllib.request | |
| import subprocess | |
| import psutil | |
| import tempfile | |
| import os | |
| import glob | |
| import yaml | |
| import re | |
| from fontTools import designspaceLib |