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
C:\iDKStar1.5\bin\star.exe -i .\bin\Test.jam -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000 |
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 escapeCsv(str) { | |
var result; | |
//「"」を「""」に変換 | |
result = str.replace(/\"/g, "\"\""); | |
//「,」を含む場合は全体を「"」で囲む | |
if (result.indexOf(",") >= 0) { | |
result = "\"" + result + "\"" | |
} |
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 trim(str) { | |
return str.replace(/^[ \t\r\n]+|[ \t\r\n]+$/g, ""); | |
} |
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
//現在時刻取得(yyyy/mm/dd hh:mm:ss) | |
function getCurrentTime() { | |
var now = new Date(); | |
var res = "" + now.getFullYear() + "/" + padZero(now.getMonth() + 1) + | |
"/" + padZero(now.getDate()) + " " + padZero(now.getHours()) + ":" + | |
padZero(now.getMinutes()) + ":" + padZero(now.getSeconds()); | |
return res; | |
} | |
//先頭ゼロ付加 |
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 getParameter(key) { | |
var str = location.search.split("?"); | |
if (str.length < 2) { | |
return ""; | |
} | |
var params = str[1].split("&"); | |
for (var i = 0; i < params.length; i++) { | |
var keyVal = params[i].split("="); | |
if (keyVal[0] == key && keyVal.length == 2) { |
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
'使用方法: | |
'セルに数式として「=ReplaceChar(A1)」のように記述 | |
Option Explicit | |
'変換対象文字の定義 | |
Const CONV_SRC = "ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポヰヱヲヴァィゥェォッャュョヮ" | |
Const CONV_TGT = "カキクケコサシスセソタチツテトハヒフヘホハヒフヘホイエオウアイウエオツヤユヨワ" | |
'処理main |
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 | |
SIZE=$1 # 出力サイズ(KB) | |
cat /dev/urandom | od -x | cut -d ' ' -f 2- | tr -d ' ' \ | |
| tr -d '\n' | dd count=$SIZE bs=1k 2>/dev/null |
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 | |
FILE_COUNT=150 | |
COPY_FILE=template | |
NAME_FORMAT=testfile%05d | |
mkdir result | |
idx=1 | |
while test $idx -le $FILE_COUNT |
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 | |
# 月加減算(YYYYMM形式) | |
add_yyyymm() { | |
yyyymm=$1 | |
month_add=$2 | |
# パラメータチェック | |
if ! echo "$yyyymm" | egrep \ | |
'^[0-9]{4}(0[1-9]|1[0-2])$' > /dev/null |
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
char *c_trim(char *cpStr) | |
{ | |
int i; | |
char *cpStart; /* 文字列の先頭位置 */ | |
/* 後ろのスペースを削除 */ | |
for (i = strlen(cpStr)-1; i >= 0; i--) | |
{ | |
if (cpStr[i] != ' ') | |
{ |
OlderNewer