go-ttyadapter
└go-readline-ny (and go-readline-skk)
├NYAGOS
├Binview
├Csvi
││
└─go-multiline-ny
│├gm
└┴SQL-Bless
This file contains hidden or 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
| function Step-Exec($cmd) { | |
| While ($true) { | |
| $ans = Read-Host ("`r`n$ {0}`r`n[Y]es: execute, [N]o: skip, [Q]uit ?" -f $cmd) | |
| if ($ans -eq "q" ){ | |
| exit 1 | |
| } | |
| if ($ans -eq "n" ){ | |
| return | |
| } | |
| if ($ans -eq "y" ){ |
This file contains hidden or 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 ( -not (Test-Path .jj) ){ | |
| jj git init | |
| } | |
| if ( -not (Test-Path .gitattributes) ){ | |
| "echo * -text`n" | Out-File -NoNewline -FilePath .gitattributes | |
| jj commit -m "Add .gitattributes as autocrlf=false" .gitattributes | |
| } | |
| foreach ( $i in @("*~","*.o","*.exe","__*","*.zip","dist") ){ |
This file contains hidden or 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
| # PowerShell Script for jj which is equivalent to `git describe --tags` | |
| function jj-describe(){ | |
| $tag=jj log -r "latest(::@ & tags())" --no-graph --template "self.tags()" | |
| $count=jj log --count -r "$tag..git_head()" | |
| if ( $count -le 0 ){ | |
| return $tag | |
| } | |
| $hash=jj log -r "@-" --no-graph --template "commit_id.short(7)" | |
| return "$tag-$count-g$hash" |
This file contains hidden or 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
| $argv = $args | |
| $saveEncode = $null | |
| if ([Console]::IsOutputRedirected) { | |
| $saveEncode = [System.Console]::OutputEncoding | |
| [System.Console]::OutputEncoding=[System.Text.Encoding]::UTF8 | |
| } | |
| Get-Content "go.mod" | | |
| Where-Object { $_ -like "module*" } | |
This file contains hidden or 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
| //go:build orgxwidth | |
| package moji | |
| import ( | |
| "unicode" | |
| "golang.org/x/text/width" | |
| ) |
This file contains hidden or 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
| @echo off | |
| @setlocal | |
| @set PROMPT=$G$S | |
| if "%~1" == "" goto :clean | |
| @echo on | |
| go1.20.14 work init | |
| go1.20.14 work use %* | |
| @exit /b |
This file contains hidden or 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
| @echo off | |
| if exist ".github\workflows\go.yml" goawk "/^module /{ printf '[](https://%%s/actions/workflows/go.yml)\n',$2,$2 }" go.mod | |
| if exist LICENSE findstr "^MIT License" LICENSE >nul 2>&1 && goawk "/^module /{ printf '[](https://%%s/blob/master/LICENSE)\n',$2}" go.mod | |
| goawk "/^module /{ printf '[](https://pkg.go.dev/%%s)\n',$2,$2}" go.mod | |
| rem gist https://gist.github.com/hymkor/af624060b243b74aef5bf563a95a1e96 |
This file contains hidden or 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/sh | |
| EMAIL=$1 | |
| if [ -z "$EMAIL" ] ; then | |
| EMAIL=3752189+hymkor@users.noreply.github.com | |
| fi | |
| if [ ! -e .git ] ; then | |
| git init | |
| fi |
This file contains hidden or 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-PSDebug -Strict | |
| $saveEncode = $null | |
| if ([Console]::IsOutputRedirected) { | |
| $saveEncode = [System.Console]::OutputEncoding | |
| [System.Console]::OutputEncoding=[System.Text.Encoding]::UTF8 | |
| } | |
| $gitfiles = @{} | |
| git ls-files | ForEach-Object { $gitfiles[ $_ ] = $true } |
NewerOlder