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
for /f "usebackq tokens=1,2" %a in (`"for /L %n in (1,1,100) do @set /a (10-%n%3)/10 && set/a (10-%n%5)/10 && echo %n && echo."`) do @(if %a==11 (echo FizzBuzz) else if %a==10 (echo Fizz) else if %a==01 (echo Buzz) else (echo %b)) |
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 | |
REM dels | |
del Seq.txt Fizz.txt Buzz.txt FizzBuzz.txt | |
del merge.txt merge.pass.txt merge.pass.sort.txt | |
del out.txt | |
REM sequences | |
for /L %%i in (1,1,100) do @echo %%i 4 %%i>>Seq.txt | |
for /L %%i in (3,3,100) do @echo %%i 3 Fizz>>Fizz.txt |
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
Set SHELL = WScript.CreateObject("WScript.Shell") | |
Set Excel = WScript.CreateObject("Excel.Application") | |
'KEY CODE | |
Const VK_SNAPSHOT = &H2C | |
Const VK_MENU = &H12 | |
Sub PrintScreen | |
'PrintScreen On | |
Call API_keybd_event(VK_SNAPSHOT,0,1,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
Set Excel = WScript.CreateObject("Excel.Application") | |
'キーコード | |
Const VK_SHIFT = &H10 | |
'マウス定数 | |
Const MOUSEEVENTF_ABSOLUTE = &H8000 | |
Const MOUSE_MOVE = &H1 | |
Const MOUSEEVENTF_LEFTDOWN = &H2 | |
COnst MOUSEEVENTF_LEFTUP = &H4 |
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
#!/bin/bash | |
soniq(){ | |
sort | uniq $* | |
} | |
concat_commands() { | |
# $1 … method ( and | or | xor ) | |
# $2 … command | |
# $3 … command | |
local _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
@if (1==1) /* | |
@if "%~2"=="" goto :USAGE | |
@if "%~1"=="/?" goto :USAGE | |
@rem --------------------------- | |
:MAIN | |
@CScript //nologo //E:JScript "%~f0" "%~1" "%~2" | |
@exit /b | |
@rem --------------------------- |
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
#!/bin/sh | |
Usage(){ | |
cat << __EOT__ >&2 | |
ファイルのステータスを確認します。 | |
Usage:`basename $0` ファイル名 | |
【使用例】 | |
$ `basename $0` file.txt |
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
function JSArray2VBArray(arr) { | |
var vbs = new ActiveXObject("ScriptControl"); | |
vbs.Language = "VBScript"; | |
vbs.AddCode( | |
"Function makeArray\n" | |
+ "makeArray = Array(" + arr + ")\n" | |
+ "End Function\n"); | |
var ret = vbs.Run("makeArray"); | |
return ret; | |
} |
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 (1==1) /* | |
@echo off | |
if "%~3"=="" goto :USAGE | |
if "%~1"=="/?" goto :USAGE | |
rem ******************************************************************************** | |
:MAIN | |
CScript //nologo //E:JScript "%~f0" %* | |
If ERRORLEVEL 1 goto :USAGE |
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 (1==1) /* | |
@echo off | |
if "%~2"=="" goto :USAGE | |
if "%~1"=="/?" goto :USAGE | |
rem ******************************************************************************** | |
:MAIN | |
CScript //nologo //E:JScript "%~f0" %* | |
If ERRORLEVEL 1 goto :USAGE |
OlderNewer