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
# | |
# example usage: | |
# python3 mosaic.py <source-path> <x-size> <y-size> <images-per-row> <spacing> | |
# python3 mosaic.py ./images/ 512 512 8 0 | |
# | |
import os | |
import sys | |
from PIL import Image, ImageDraw |
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 json | |
import csv | |
from collections import Counter | |
# | |
# example usage: python3 rarity-score.py | |
# | |
# Load the JSON data | |
with open('./output/metadata/all-objects.json') as f: |
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 json | |
import sys | |
from collections import Counter | |
import csv | |
# | |
# example usage: | |
# python find-traits.py "trait1,trait2,trait3" | |
# |
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 os | |
import json | |
import glob | |
import re | |
# Get all JSON files in the directory | |
json_files = glob.glob('output/metadata/*.json') | |
for json_file in json_files: | |
# Check if the filename is a number |
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
[slack] | |
name=Slack | |
baseurl=https://packagecloud.io/slacktechnologies/slack/fedora/21/$basearch | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=https://slack.com/gpg/slack_pubkey_20220708.gpg | |
sslverify=1 | |
sslcacert=/etc/pki/tls/certs/ca-bundle.crt | |
metadata_expire=300 |