- :raise-missing-from (W0707): Consider explicitly re-raising using the 'from' keyword
- :simplifiable-if-expression (R1719): The if expression can be replaced with %s
- :chained-comparison (R1716): Simplify chained comparison between the operands
- :cyclic-import (R0401): Cyclic import (%s)
- :no-self-use (R0201): Method could be a function
- :useless-super-delegation (W0235): Useless super delegation in method %r
- :dangerous-default-value (W0102): Dangerous default value %s as argument
- :unnecessary-pass (W0107): Unnecessary pass statement
import argparse | |
import re | |
import subprocess | |
import av | |
import cv2 | |
import numpy as np | |
from decord import VideoReader, cpu | |
from torchvision import io |
import argparse | |
import re | |
import subprocess | |
import av | |
import cv2 | |
import numpy as np | |
from decord import VideoReader, cpu | |
from torchvision import io |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"copyOnSelect" : false, | |
"defaultProfile" : "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
"keybindings" : |
If you hate git submodule
, then you may want to give git subtree
a try.
When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add
command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.
When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.
Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this:
# Installs Zsh with Oh-My-Zsh without root privileges | |
# on Stanford's Sherlock (https://sherlock.stanford.edu) for use in tmux | |
# | |
# Instructions | |
# 1) bash install_zsh.sh | |
# 2) edit .zshrc and add the path to your Zsh binary to the PATH variable | |
# 3) add `set-option -g default-shell <path to zsh>/bin/zsh` to `~/.tmux.conf` | |
# | |
# References: https://www.drewsilcock.co.uk/compiling-zsh | |
# |
#include <atomic> | |
#include <chrono> | |
#include <condition_variable> | |
#include <deque> | |
#include <future> | |
#include <iostream> | |
#include <mutex> | |
#include <thread> | |
#include <vector> |
[ -e ~/.dircolors ] && eval $(dircolors -b ~/.dircolors) || | |
eval $(dircolors -b) | |
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
autoload -Uz compinit && compinit | |
addprocs() | |
src_path = "train" | |
dst_path = "/mnt/SSD/datasets/imagnet128" | |
mkpath(dst_path) | |
for folder in readdir(src_path) | |
println("processing folder $folder") |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |