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
import kotlinx.serialization.Serializer | |
import kotlinx.serialization.KSerializer | |
import kotlinx.serialization.SerialDescriptor | |
import kotlinx.serialization.Encoder | |
import kotlinx.serialization.Decoder | |
import kotlinx.serialization.internal.StringDescriptor | |
import java.text.DateFormat | |
import java.text.SimpleDateFormat | |
import java.util.Date | |
import java.util.Locale |
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
set nocompatible | |
filetype off | |
syntax enable | |
set encoding=utf-8 | |
set number " show line numbers | |
set showcmd " show command in bottom bar | |
set cursorline " highlight current line | |
set signcolumn=yes " show column in front of line number column, used by linter, e.g. | |
set wrap | |
set mouse=a |
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
alias adog='git log --all --decorate --oneline --graph' | |
alias graph1="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" | |
alias graph2="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" | |
while IFS="" read -r p || [ -n "$p" ] | |
do | |
export PATH="$p:$PATH" | |
done < ~/my_paths |
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
fun updateStatusBar(activity: Activity, lightStatusBar: Boolean) = | |
activity.window.apply { | |
when { | |
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M -> { | |
if (lightStatusBar) { | |
decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | |
} else { | |
decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
} | |
statusBarColor = ResourcesCompat.getColor(activity.resources, android.R.color.transparent, null) |
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/bash | |
sourceName=$1 | |
destName=$2 | |
find -name "$sourceName" | while read foundName | |
do | |
destDir=`dirname "$foundName"` | |
mv "$foundName" "$destDir/$destName" | |
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
#!/bin/bash | |
filename=$1 | |
dest=$2 | |
echo "`find -path "./*$filename"`" | while read line | |
do | |
cp --parents "$line" "$dest" | |
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
{ | |
"diagnostic.displayByAle": true, | |
"pyright.enable": true, | |
"python.formatting.provider": "ruff", | |
"python.linting.ruffEnabled": true, | |
"pyright.organizeimports.provider": "isort", | |
"python.pythonPath": "/usr/bin/python3", | |
"languageserver": { | |
"python3": { |