mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
Merge branch 'master' of https://github.com/js0ny/dotfiles
This commit is contained in:
commit
4cba004d09
3 changed files with 21 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ alias c=code
|
|||
# Misc #
|
||||
|
||||
alias cf=cfiles
|
||||
alias gdb=aarch64-elf-gdb
|
||||
|
||||
### Functions ###
|
||||
|
||||
|
|
|
|||
17
powershell/scripts.ps1
Normal file
17
powershell/scripts.ps1
Normal 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 "| $_ |"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue