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 | |
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 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 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 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 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 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 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 -> |