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/env python3 | |
| """Survey Python-domain object types used by the top 500 PyPI projects. | |
| ``INVENTORIES`` is a reproducible snapshot of the trailing-30-day download | |
| ranking from ``top-pypi-packages``. PyPI metadata does not provide an | |
| inventory URL, so unavailable or unverified inventories are recorded with | |
| ``None`` and skipped. | |
| Five sorted lists are written to stdout: each ``py:objtype`` with the number of | |
| inventories containing it, each project and its unique Python object types, |
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/env bash | |
| rid=$(rad inspect --rid) || exit 1 | |
| echo "[](https://app.radicle.at/nodes/seed.radicle.at/${rid})" |
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 | |
| from importlib.metadata import distributions | |
| import httpx | |
| import yaml | |
| def fetch_funding(httpx_client, owner, repo): | |
| query = """ | |
| query($owner: String!, $repo: String!) { |
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 importlib.metadata import distributions | |
| funding_keywords = {"donate", "funding", "tidelift"} | |
| def print_funding_urls(): | |
| for package in distributions(): | |
| funding_urls = [] | |
| for line in package.metadata.get_all("Project-URL", []): | |
| title, url = line.split(", ", 1) | |
| if title.lower() in funding_keywords: |
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
| # This gist shows how we could get rid of docstrings micro-syntax | |
| # like Google-style and Numpydoc-style pseudo-standards, | |
| # using an enhanced version of PEP 727. | |
| # The goal is to replace the following sections: | |
| # Attributes | |
| # Functions/Methods | |
| # Classes | |
| # Modules |
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
| export BUILD_MANPAGE=true | |
| export PERMALINK=false | |
| export SHOW_SOURCE=false | |
| mkdocs build |
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
| echo $( | |
| # comment | |
| echo "hello" \ | |
| "world" \ | |
| "thanks" | # comment | |
| cat | ( # comment | |
| # comment | |
| cat -n # comment | |
| ) | cat && # comment | |
| echo bye |
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
| [general] | |
| targets = github_pawamoy | |
| shorten = True | |
| inline_links = False | |
| annotation_links = True | |
| annotation_comments = False | |
| legacy_matching = False |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |