- http://www.gnu.org/licenses/gpl.html
- http://sourceforge.jp/projects/opensource/wiki/licenses%252FGNU_General_Public_License_version_3.0
保障
無保証。
rem MS-DOS | |
@echo off | |
setlocal | |
rem ====================================================================== | |
rem カレントドライブ・カレントディレクトリをバッチファイルのディレクトリにする | |
cd /d %~dp0 | |
rem ====================================================================== | |
rem iniファイル(***.cmdの場合は***.ini) |
/* | |
* ConfigurationManager.AppSettingsの値を書き換え | |
* http://stackoverflow.com/questions/158783/is-there-a-way-to-override-configurationmanager-appsettings | |
*/ | |
using System; | |
using System.Collections.Specialized; | |
using System.Configuration; | |
using System.Configuration.Internal; | |
using System.Reflection; |
var Stopwatch = function() { | |
this.initialize.apply(this, arguments); | |
}; | |
Stopwatch.prototype = { | |
initialize: function() { | |
this.reset(); | |
}, | |
start: function() { | |
this.startTime = new Date(); | |
}, |
Calendar = function() { | |
this.initialize.apply(this, arguments); | |
} | |
Calendar.config = { | |
tags: { | |
header: "table", | |
headerChild: "tr", | |
thisMonth: "td", | |
prev: "td", | |
next: "td", |
// http://d.hatena.ne.jp/zecl/20090127/p1 | |
/** 組み合わせ */ | |
var Combinations = (function() { | |
var _public, | |
_items = null, | |
_length = 0, | |
_indices = null, | |
_combinations = null, | |
_finalIndices = null, |
public static T Construct<T, A>(A arg) | |
{ | |
Type type = typeof(T); | |
ConstructorInfo ctor = type.GetConstructor(new Type[] { typeof(A) }); | |
if (ctor == null) | |
throw new NotSupportedException("コンストラクタが定義されていません。"); | |
return (T)ctor.Invoke(new object[] { arg }); | |
} |
function hexNumRefToString(hexNumRef) { | |
return hexNumRef.replace(/&#x([0-9a-f]+);/ig, function(match, $1, idx, all) { | |
return String.fromCharCode('0x' + $1); | |
}); | |
} | |
function decNumRefToString(decNumRef) { | |
return decNumRef.replace(/&#(\d+);/ig, function(match, $1, idx, all) { | |
return String.fromCharCode($1); | |
}); | |
} |
Option Explicit | |
If WScript.Arguments.Count = 3 Then | |
Call CreateFolder(WScript.Arguments.Item(0)) | |
End If | |
Sub CreateFolder(strPath) | |
Dim objFso | |
Dim strParentPath | |
Set objFso = CreateObject("Scripting.FileSystemObject") |