This practice is for Unix
- Use [Homebrew] to install [Pipx]
- Use Pipx to install [Poetry] and [Tox]
- Use Homebrew (or official installer) to install [Pyenv] and [Pyenv-virtualenv]
for dir in */; do | |
if [ ! -d "${dir}.git" ]; then | |
continue | |
fi | |
pushd ${dir} > /dev/null | |
echo ${dir}$(git branch --show-current) | |
git pull | |
popd > /dev/null | |
done |
#!/bin/bash | |
set -e | |
rm -rf slash | |
mkdir slash | |
pushd slash > /dev/null | |
mkdir -p private/var | |
pushd private/var > /dev/null |
import json | |
from typing import Any, List | |
from httpx import Client | |
class CardSquare: | |
""" | |
https://webstatic.mihoyo.com/ys/event/bbs-lineup-qskp/index.html#/pc/publish | |
""" |
For workspace like:
.
├── AandB.code-workspace
├── DirA
│ ├── A.py
│ └── venvA
Workaround: microsoft/WSL#10494 (comment)
export GRACEFUL_PATH=""
java -Duser.home=${GRACEFUL_PATH} -Dhmcl.home=${GRACEFUL_PATH} -Djavafx.cachedir=${GRACEFUL_PATH} -jar HMCL-3.5.5.jar
install fish and setup fish shell
install homebrew and config homebrew
use homebrew install starship and set preset to plaintext
use homebrew install pyenv and pipx
install nvm and sdkman via script
install fisher for fish shell plugin
use fisher install nvm.fish and sdkman-for-fish
import { $ } from 'bun' | |
async function compile(code: string) { | |
const hasher = new Bun.CryptoHasher("sha256").update(code) | |
const destination = hasher.digest("hex").substring(0, 6) + ".c" | |
Bun.write(destination, code) | |
await $`gcc ${destination} -o ${destination}.out` | |
const output = await $`./${destination}.out`.text() | |
console.log(output) | |
} |