-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edited: goc, gosrc, mdn, names, ydl, yda, new, profile; added: choose…
…, cpr, ffp, files, folders, get, gint, gitfast, goc, gomo, gosrc, gun, mdn, rmp, sample, sizes, y22, ydc, ytdls;
- Loading branch information
Showing
25 changed files
with
394 additions
and
101 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function isArray($obj) { | ||
[boolean](($args.gettype().basetype.name -eq 'array') ? 1 : 0) | ||
} | ||
echo $n | ||
# $names = ($args.gettype().basetype.name -eq 'array') ? $args : [array]$args | ||
$names = (isArray($args)) ? ((isArray($args[0]) )? $args[0]: $args) : [array]$args | ||
$n = get-random ($names).length | ||
# $names.gettype() | ||
$item = ($names)[$n] | ||
echo $item | ||
set-clipboard $item |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if ($args.length) { | ||
$index = get-random $args[0].length | ||
$item = $args[0][$index] | ||
echo $item | ||
set-clipboard $item | ||
} else { | ||
$n = get-random (names).length | ||
$item = (names)[$n] | ||
echo $item | ||
set-clipboard $item | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if ($args.length -gt 0) { | ||
if ($args.length -eq 1) { | ||
if ($args[0].gettype().basetype.name -eq "array") { | ||
$args = $args[0] | ||
} | ||
} | ||
for ($i=0; $i -lt $args.length; $i++) { | ||
blank ($i -eq 0 ? 0: 3) | ||
$args[$i] | ||
ffplay $args[$i] | ||
} | ||
} else { | ||
$args = (get-clipboard) -split "\n" | ||
|
||
for ($i=0; $i -lt $args.length; $i++) { | ||
$arg = $args[$i] | ||
blank ($i -eq 0 ? 0: 3) | ||
|
||
if (isfile $arg) { | ||
ffplay $arg | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if ($args.length -gt 0) { | ||
for ($i=0; $i -lt $args.length; $i++) { | ||
blank (($i -gt 0) ? 3: 0) | ||
$arg = $args[$i] | ||
foreach ($name in ls -file -name $arg) { | ||
$pth = join-path $arg $name | ||
echo $pth | ||
} | ||
} | ||
} else { | ||
$here = pwd | ||
files $here | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# $Script:thisDir = Split-Path $MyInvocation.MyCommand.Path -Parent | ||
|
||
if ($args.length -gt 0) { | ||
for ($i=0; $i -lt $args.length; $i++) { | ||
blank (($i -gt 0) ? 3: 0) | ||
$arg = $args[$i] | ||
foreach ($name in ls -directory -name $arg) { | ||
$pth = join-path $arg $name | ||
echo $pth | ||
} | ||
} | ||
} else { | ||
$here = pwd | ||
folders $here | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
for ($i=0; $i -lt $args.length; $i++) { | ||
blank ($i -eq 0 ? 0: 3) | ||
ind ($i + 1) $args.length | ||
git clone $args[$i] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
go mod init $args[0]; go mod tidy |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$name = $args[0] | ||
if (-not (isfile "readme.md")) { | ||
echo $name >> readme.md | ||
} | ||
git init | ||
git add * | ||
git commit -m "first commit" | ||
git branch -M main | ||
git remote add origin ("[email protected]:kendfss/" + $name + ".git") | ||
git push -u origin main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
foreach ($arg in $args) { | ||
go doc $arg | ||
blank 3 | ||
if ($args.length) { | ||
for ($i=0; $i -lt $args.length; $i++) { | ||
blank ($i -gt 0 ? 3 : 0) | ||
go doc $args[$i] | ||
} | ||
} else { | ||
go doc | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$name = $args[0] | ||
mcd $name | ||
go mod init $name | ||
p > main.go | ||
go mod tidy | ||
go run main.go |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
$names = onde go | ||
# $names | ||
$names = ($names.gettype().basetype.name -eq 'array') ? $names : [array]$names | ||
cd (split-path $names[0]) | ||
cd .. | ||
cd ../src |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
go run $args[0] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
start "E:\gitting\gitclone\clones\mdn\content\files\en-us" | ||
start $mdn |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
$rack = ls -name . | ||
if ($args.length) { | ||
# foreach ($arg in $args) { | ||
for ($i=0; $i -lt $args.length; $i++) { | ||
blank (($i -gt 0) ? 3: 0) | ||
$arg = $args[$i] | ||
ls -name $arg | ||
foreach ($arg in $args) { | ||
$rack = $rack | where {$_.tolower().contains($arg.tolower())} | ||
} | ||
} else { | ||
ls -name . | ||
} | ||
# $rack = $rack | where {isfile $_} | ||
} | ||
$rack | ||
# if ($args.length) { | ||
# for ($i=0; $i -lt $args.length; $i++) { | ||
# blank (($i -gt 0) ? 3: 0) | ||
# $arg = $args[$i] | ||
# ls -name $arg | ||
# } | ||
# } else { | ||
# ls -name . | ||
# } |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
start $profile | ||
editor $profile |
Oops, something went wrong.