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
| #!/usr/bin/python3 | |
| import click | |
| import math | |
| import os | |
| from PIL import Image | |
| OUTPUT_SIZE = "15x10" | |
| THUMB_SIZE = "2.5x3.5" | |
| RESOLUTION = 300 |
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
| #!/usr/bin/python3 | |
| import base64 | |
| from contextlib import contextmanager | |
| from datetime import datetime, timedelta, timezone | |
| import hashlib | |
| import os | |
| import sys | |
| import click | |
| import jwt |
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 os | |
| import os.path | |
| import re | |
| import sys | |
| TOP_FOLDER=sys.argv[1] | |
| SRC_FOLDER=os.path.join(TOP_FOLDER, "java/code/src") | |
| package = "com/redhat/rhn/taskomatic/core/" |
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
| #!/usr/bin/python3 | |
| import json | |
| import urllib.request | |
| import sys | |
| try: | |
| with urllib.request.urlopen("https://api.github.com/search/issues?q=sha:" + sys.argv[1]) as resp: | |
| data = json.loads(resp.read().decode()) | |
| prs = [{'number': pr['number'], 'url': pr['html_url']} for pr in data["items"]] |
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
| set mainfont {sans 9} | |
| set textfont {monospace 9} | |
| set uifont {sans 9 bold} | |
| set tabstop 8 | |
| set findmergefiles 0 | |
| set maxgraphpct 50 | |
| set maxwidth 16 | |
| set cmitmode patch | |
| set wrapcomment none | |
| set autoselect 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
| #!/usr/bin/python3 | |
| from github import Github | |
| from odf.opendocument import OpenDocumentSpreadsheet | |
| import odf.table | |
| import odf.text | |
| import re | |
| from typing import Dict, List | |
| import datetime | |
| import sys |
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
| #!/usr/bin/python3 | |
| import datetime | |
| import sys | |
| def get_easter(year): | |
| """Returns Easter as a date object.""" | |
| a = year % 19 | |
| b = year // 100 | |
| c = year % 100 | |
| d = (19 * a + b - b // 4 - ((b - (b + 8) // 25 + 1) // 3) + 15) % 30 |