Skip to content

Instantly share code, notes, and snippets.

View Pzoom522's full-sized avatar
❤️
in love with 🥚

Xutan Peng Pzoom522

❤️
in love with 🥚
View GitHub Profile
@Pzoom522
Pzoom522 / lang_pair.sh
Last active September 21, 2021 18:23
shell script to traverse all language pairs
#!/bin/bash
function traverse(){
lang_list=($1)
ban=0
for i in "${!lang_list[@]}"
do
ban=$((ban + 1))
# echo "$ban"
for j in "${!lang_list[@]}"
@Pzoom522
Pzoom522 / script.py
Created November 19, 2020 20:32 — forked from hfiller/script.py
Basic program to get 2d Projection
import numpy as np
import matplotlib.pyplot as plt
import json
with open("/path/to/state.txt") as f:
bookmarks = json.load(f)
bookmark = bookmarks[0] # We'll look at the first bookmark
eye = np.array(bookmark["cameraDef"]["position"])
@Pzoom522
Pzoom522 / large_file_win.txt
Created October 14, 2020 21:32
Find >1GB files in your win computer
forfiles /S /M * /C "cmd /c if @fsize GEQ 1073741824 echo @path > largefiles.txt