This commit is contained in:
js0ny 2024-08-28 18:56:20 +08:00
commit 4cba004d09
3 changed files with 21 additions and 1 deletions

4
.gitignore vendored
View file

@ -1,3 +1,4 @@
*_private/
.private.env.*
nvim/tt.*
nvim/.tests
@ -10,7 +11,8 @@ nvim/data
nvim/lazy-lock.json
nvim/lazyvim.json
test/
test.*
*.gz
*.tar
*.zip
*_private/
*.tgz

View file

@ -92,6 +92,7 @@ alias c=code
# Misc #
alias cf=cfiles
alias gdb=aarch64-elf-gdb
### Functions ###

17
powershell/scripts.ps1 Normal file
View file

@ -0,0 +1,17 @@
function CsvToMarkdown {
param( [string]$csv)
$counter = 0
$column = $csv.Split("`n")[0].Split(",").Length
$aHeader = " --- |"
$header = "|" + $aHeader * $column
$csv.replace(",", " | ").Split("`n") | ForEach-Object {
if ($counter -eq 0) {
Write-Output "| $_ |"
$counter++
Write-Output $header
}
else {
Write-Output "| $_ |"
}
}
}