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
package main | |
import "bufio" | |
import "io" | |
import "os" | |
import "regexp" | |
import "fmt" | |
var ansiStrip = regexp.MustCompile("\x1B[^a-zA-Z]*[A-Za-z]") |
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
Sub Foo() | |
'変数宣言もろもろ | |
'処理もろもろ | |
GoSug Hoge | |
Hoge: | |
Return | |
End Sub |
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
<MARKEDONE:~> | |
✏ ipy struct.py | |
10 20 <30> | |
<MARKEDONE:~> | |
✏ |
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
::rem:: --[[ vim:set ft=lua: | |
@lua "%~f0" %* & exit /b 0 | |
]]-- | |
-- requires Lua 5.3 | |
if #arg < 1 then | |
print( string.format( [[Usage: %s "SCRIPT" files... | |
S[n] = $n on AWK | |
NR = NR on AWK |
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
Option Explicit | |
if WScript.Arguments.count < 2 then | |
WScript.Echo("Usage: cscript lnk.vbs FILENAME SHORTCUT ... make shortcut") | |
WScript.Echo(" cscript lnk.vbs SHORTCUT ... print shortcut-target") | |
WScript.Quit() | |
end if | |
dim src : src=WScript.Arguments.Item(0) | |
dim dst : dst=WScript.Arguments.Item(1) | |
dim fsObj : set fsObj=CreateObject("Scripting.FileSystemObject") | |
src=fsObj.GetAbsolutePathName(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
if( WScript.Arguments.length < 2 ){ | |
WScript.Echo("Usage: cscript lnk.js FILENAME SHORTCUT ... make shortcut") | |
WScript.Echo(" cscript lnk.js SHORTCUT ... print shortcut-target") | |
WScript.Quit() | |
} | |
var src=WScript.Arguments.Item(0); | |
var dst=WScript.Arguments.Item(1); | |
var fsObj=new ActiveXObject("Scripting.FileSystemObject"); | |
src=fsObj.GetAbsolutePathName(src); | |
dst=fsObj.GetAbsolutePathName(dst); |
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
rem = 0 /* | |
@cscript //E:JScript //nologo "%~f0" %1 %2 %3 %4 %5 %6 %7 %8 %9 & exit /b | |
*/ | |
if( WScript.Arguments.length < 2 ){ | |
WScript.Echo("Usage: lnk.cmd FILENAME SHORTCUT ... make shortcut") | |
WScript.Echo(" lnk.cmd SHORTCUT ... print shortcut-target") | |
WScript.Quit() | |
} | |
var src=WScript.Arguments.Item(0); | |
var dst=WScript.Arguments.Item(1); |
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
<HAYAMA-PC:~> | |
✏ foo.cmd | |
[36;40;1m<HAYAMA-PC:C:\Users\Hayama> | |
rem = 0 /* | |
ahaha |
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
Option Explicit | |
dim objShell,arg1 | |
set objShell = WScript.CreateObject("WScript.Shell") | |
for each arg1 in WScript.Arguments | |
WScript.Echo( objShell.SpecialFolders(arg1) ) | |
next |
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
@echo off | |
setlocal | |
set "HERE=%~dp0" | |
shift | |
for /F %%I in ('cscript //nologo "%HERE%specialfolder.vbs" sendto') do set "SENDTO=%%I" | |
for %%I in (%0 %1 %2 %3 %4 %5 %6 %7 %8 %9) do cscript //nologo "%HERE%lnk.vbs" "%%I" "%SENDTO%\." | |
endlocal |
OlderNewer