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
<code_scheme name="Default" version="173"> | |
<ScalaCodeStyleSettings> | |
<option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" /> | |
</ScalaCodeStyleSettings> | |
<codeStyleSettings language="JAVA"> | |
<option name="RIGHT_MARGIN" value="120" /> | |
<option name="KEEP_LINE_BREAKS" value="false" /> | |
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> | |
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> | |
<option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" /> |
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
ls -s modified *.mp4 --no-quotes | cat -n | while read n f; do mv "$f" "$(printf "%s - %s" $n $f)"; done |
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
# change default working directory | |
if [ "$PWD" = '/mnt/c/Users/zhanx' ] | |
then | |
cd | |
fi | |
# enabling some built-in features | |
zstyle ':completion:*' menu select | |
fpath+=~/.zfunc | |
autoload -U compinit && compinit |
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
# Installed Module | |
Import-Module posh-git | |
# Aliases | |
Set-Alias -Name ll -Value Get-ChildItem | |
Set-Alias -Name quit -Value exit | |
Set-Alias -Name code -Value '/mnt/c/Users/zhanx/AppData/Local/Programs/Microsoft VS Code/bin/code' | |
# Built-In PSReadLine Options | |
Set-PSReadLineOption -HistoryNoDuplicates |
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
$script:THIS_PATH = $myinvocation.mycommand.path | |
$script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent | |
function global:deactivate([switch] $NonDestructive) { | |
if (Test-Path variable:_OLD_VIRTUAL_PATH) { | |
$env:PATH = $variable:_OLD_VIRTUAL_PATH | |
Remove-Variable "_OLD_VIRTUAL_PATH" -Scope global | |
} | |
if (Test-Path function:_old_virtual_prompt) { |
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
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
# Env | |
$ENV:STARSHIP_CONFIG = "$HOME\.starship\starship.toml" | |
# Installed Module | |
Import-Module posh-git | |
Import-Module npm-completion |
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
# If you come from bash you might have to change your $PATH. | |
# | |
# | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/xzhan/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, |
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
{ | |
"python.pythonPath": "env/bin/python", | |
"python.linting.pylintArgs": ["--load-plugins", "pylint_django", "--max-line-length=100"], | |
"python.formatting.autopep8Args": ["--max-line-length", "150"], | |
"beautify.language": { | |
"html": ["htm", "html", "django-html"] | |
}, | |
"beautify.config": { | |
"indent_size": 4, | |
"wrap_line_length": 150, |
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
{ | |
"Jinja For": { | |
"prefix": "jj-for", | |
"body": ["{% for ${2:element} in ${1:array} %}", "\t$0", "{% endfor %}"], | |
"description": "For loop in Jinja2" | |
}, | |
"Jinja If": { | |
"prefix": "jj-if", | |
"body": ["{% if ${1:expression} %}", "\t$0", "{% endif %}"], | |
"description": "If statement in Jinja2" |