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
Typst ββββββββββββββββββββββββββββββββββββ 31.17% | |
C++ ββββββββββββββββββββββββββββββββββββ 14.49% | |
TypeScript ββββββββββββββββββββββββββββββββββββ 14.44% | |
JavaScript ββββββββββββββββββββββββββββββββββββ 12.03% | |
Python ββββββββββββββββββββββββββββββββββββ 8.66% | |
Vue ββββββββββββββββββββββββββββββββββββ 5.46% | |
C ββββββββββββββββββββββββββββββββββββ 4.57% | |
Rust ββββββββββββββββββββββββββββββββββββ 3.98% | |
TeX ββββββββββββββββββββββββββββββββββββ 2.05% | |
Astro ββββββββββββββββββββββββββββββββββββ 1.46% |
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
#!/usr/bin/env python | |
# https://blog.nanpuyue.com/2019/054.html | |
# I use ChatGPT to translate the original Rust code into Python and made some modifications. | |
from typing import List, Optional, Union | |
from pathlib import Path | |
import os | |
class TNode: |
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
# ---------------------------------------------- PDM Auto Activation --- | |
# @from https://dev.to/moniquelive/auto-activate-and-deactivate-python-venv-using-zsh-4dlm | |
python_venv() { | |
MYVENV=./.venv | |
# when you cd into a folder that contains $MYVENV | |
[[ -d $MYVENV ]] && source $MYVENV/bin/activate > /dev/null 2>&1 | |
# when you cd into a folder that doesn't | |
[[ ! -d $MYVENV ]] && deactivate > /dev/null 2>&1 | |
} | |
autoload -U add-zsh-hook |
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
β Total Stars: 231 | |
β Total Commits: 1,688 | |
π Total PRs: 100 | |
π© Total Issues: 54 | |
π¦ Contributed to: 24 |
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
#!/bin/bash | |
SCRIPT_NAME=$(basename "$0") | |
VERSION="1.0.0" | |
function usage() { | |
cat <<EOF | |
Usage: $SCRIPT_NAME [-d] <repository> | |
-d Perform a shallow clone with a depth of 1 | |
EOF |
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
// use (16 chars of) 'password' to encrypt 'plaintext' | |
function encrypt(plaintext, password) { | |
var v = new Array(2), k = new Array(4), s = "", i; | |
plaintext = escape(plaintext); // use escape() so only have single-byte chars to encode | |
// build key directly from 1st 16 chars of password | |
for (var i=0; i<4; i++) | |
k[i] = Str4ToLong(password.slice(i*4,(i+1)*4)); |