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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "plain", |
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 bash | |
SCM_GIT_CHAR="± " | |
SCM_HG_CHAR="☿ " | |
SCM_SVN_CHAR="⑆ " | |
SCM_NONE_CHAR="" | |
SCM_THEME_PROMPT_DIRTY=" ${red}✗" | |
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" | |
SCM_THEME_PROMPT_PREFIX="|" | |
SCM_THEME_PROMPT_SUFFIX="${green}| " | |
SCM_GIT_AHEAD_CHAR="${green}+" |
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
<!-- head --> | |
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css"> | |
<link rel="stylesheet" href="https://files.cnblogs.com/files/xjtu-blacksmith/arduino-light.css"> | |
<script async src="https://cdn.bootcss.com/pangu/4.0.7/pangu.min.js"></script> | |
<script src="https://cdn.bootcss.com/mathjax-mhchem/3.3.2/mhchem.js"></script> |
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
# the file is at: data/tiny-imagenet-200/train/ | |
import os | |
dirs = os.listdir('.') # get categoris | |
for the_dir in dirs: | |
if os.path.isdir(the_dir): # only work for folders | |
for _, _, images in os.walk(os.path.join(the_dir, 'images')): | |
for image in images: | |
os.rename( | |
os.path.join(the_dir, 'images', image), | |
os.path.join(the_dir, image) |
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
$ThemeSettings.PromptSymbols.VirtualEnvSymbol = "ENV" |
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
3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | 2.9 | 2.8 | 2.71 | 2.62 | 2.54 | 2.49 | 2.45 | 2.43 | 2.41 | 2.41 | 2.4 | 2.4 | 2.4 | 2.4 | 2.4 | |
3 | 2.8 | 2.61 | 2.42 | 2.23 | 2.07 | 1.96 | 1.89 | 1.85 | 1.82 | 1.81 | 1.81 | 1.8 | 1.8 | 1.8 | 1.8 | |
3 | 2.71 | 2.42 | 2.11 | 1.81 | 1.54 | 1.38 | 1.3 | 1.25 | 1.23 | 1.21 | 1.2 | 1.2 | 1.2 | 1.2 | 1.2 | |
3 | 2.62 | 2.23 | 1.81 | 1.36 | 0.91 | 0.74 | 0.66 | 0.63 | 0.61 | 0.6 | 0.6 | 0.6 | 0.6 | 0.6 | 0.6 | |
3 | 2.54 | 2.07 | 1.54 | 0.91 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
3 | 2.49 | 1.96 | 1.38 | 0.74 | 0 | |||||||||||
3 | 2.45 | 1.89 | 1.3 | 0.66 | 0 | |||||||||||
3 | 2.43 | 1.85 | 1.25 | 0.63 | 0 | |||||||||||
3 | 2.42 | 1.83 | 1.23 | 0.62 | 0 |