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
TypeScript ββββββββββββββββββββββββββββββββββββ 30.63% | |
JavaScript ββββββββββββββββββββββββββββββββββββ 21.02% | |
Python ββββββββββββββββββββββββββββββββββββ 12.11% | |
C++ ββββββββββββββββββββββββββββββββββββ 9.79% | |
Vue ββββββββββββββββββββββββββββββββββββ 9.18% | |
Rust ββββββββββββββββββββββββββββββββββββ 6.53% | |
C ββββββββββββββββββββββββββββββββββββ 2.51% | |
Astro ββββββββββββββββββββββββββββββββββββ 2.49% | |
TeX ββββββββββββββββββββββββββββββββββββ 1.77% | |
Typst ββββββββββββββββββββββββββββββββββββ 1.21% |
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 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 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
# ---------------------------------------------- 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 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
π Merged: PR #74 in tisfeng/Raycast-Easydict | |
πͺ Open: PR #1651 in giscus/giscus | |
π Merged: PR #707 in octokit/auth-app.js | |
π Merged: PR #73 in tisfeng/Raycast-Easydict | |
π Merged: PR #20190 in raycast/extensions |
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
#!/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 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
// 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)); |