from inspect import getdoc
print(
"\n\n".join(
[
f"## {b}({type(eval(b))}):\n\n{getdoc(eval(b))}"
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
#!/usr/bin/env bash | |
set -euxo pipefail | |
GH_USER='eggplants' # MODIFY THIS IF YOU USE THIS SCRIPT | |
TARGET_MERCURIAL_REPO_URL='https://hg.jcea.es/pybsddb' # MODIFY THIS IF YOU USE THIS SCRIPT | |
TARGET_MERCURIAL_REPO_NAME="${TARGET_MERCURIAL_REPO_URL/*\//}" | |
GH_MIRROR_URL="https://github.com/${GH_USER}/${TARGET_MERCURIAL_REPO_NAME}-mirror" |
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 urllib.request import urlopen | |
from bs4 import BeautifulSoup | |
from yaml import dump | |
def build_nested(paths, sep): | |
tree = {} | |
for path in paths: | |
node = tree | |
levels = path.split(sep) | |
for level in levels: |
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
window.tumblr = { | |
"languageData": { | |
"code": "ja_JP", | |
"translations": { | |
"Something strange happened. Reload to try again?": "ファイル保存中に問題が起きたようです。リロードしてもう一度お試しください。", | |
"About": "詳細情報", | |
"Apps": "アプリ", | |
"Legal": "法的事項", | |
"Privacy": "プライバシー", | |
"Inbox": "受信箱", |
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 | |
main() { | |
set -euxo pipefail | |
local USAGE JSONNAME SHNAME | |
readonly USAGE="usage: $0 <jar-with-dependencies>" | |
readonly JSONNAME="${1-}" | |
readonly SHNAME="${JSONNAME%jar}sh" | |
if ! command -v file &>/dev/null; then |
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 | |
set -euo pipefail | |
USAGE="usage: $0 <x2y|y2x>" | |
if ! command -v mvn &>/dev/null; then | |
echo 'err: install maven' >&2 | |
exit 1 | |
elif [ "$({ echo 3.3.0;mvn --version|head -1|cut -f3 -d ' ';}|sort -V|head -1)" != '3.3.0' ]; then |
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 | |
set -euo pipefail | |
# Color Codes so that warnings/errors stick out | |
GREEN="\033[32m" | |
RED="\033[31m" | |
CLEAR="\033[0m" | |
USAGE="usage: $0 [<TARGET DIR>=.]" |
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 | |
curl -s 'https://www.powerlanguage.co.uk/wordle/main.e65ce0a5.js' \ | |
| grep -oP "=\[[^\]]+\]" \ | |
| sed -n '2,3p' \ | |
| grep -oE '"[a-z]{5}"' \ | |
| tr -d '"' \ | |
| sort > wordle_valid_word_dictionary.txt |