Skip to content

Instantly share code, notes, and snippets.

View kageroh's full-sized avatar

Masao YOKOYAMA kageroh

  • Japan
  • Utsunomiya-shi, Tochigi
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<job>
<object id="shell" progid="WScript.Shell" />
<script language="JScript"><![CDATA[
(function() {
var path = WSH.arguments(0);
shell.run([
'ajaxmin',
'"' + path + '"',
'-out',
<?xml version="1.0" encoding="utf-8"?>
<job>
<object id="dom" progid="Microsoft.XMLDOM"/>
<object id="ado" progid="ADODB.Stream"/>
<reference object="ADODB.Stream"/>
<script language="VBScript"><![CDATA[
Function input_box(ByVal str)
InputBox "", "", str
End Function
]]></script>
Gin = require('Gin').Gin;
(function() {
var path_out = Main.arguments[2];
var path_dir = Main.arguments[3];
var encoding = Main.arguments[4];
var delimiter = '\t';
var file_out = new File(path_out);
var stream_out = file_out.openWrite();
var dom = exports;
(function() {
function extend(d, s) { for (var p in s) d[p] = s[p]; }
/* ================ Node ================ */
dom.Node = Node;
function Node() {};
Node.__defineGetter__('ELEMENT_NODE' , function() { return 1; });
(function() {
var gin = new Gin.Grammar({
document : / prolog element Misc* /,
Char : / <(?:[\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])> /,
S : / <[\x20\x09\x0D\x0A]+> /,
NameStartChar : / <[:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]> /,
NameChar : / NameStartChar | <[\-.0-9\xB7\u0300-\u036F\u203F-\u2040]> /,
Name : / NameStartChar NameChar* /,
Nmtoken : / NameChar+ /,
EntityValue : / ( '"' ( <[^%&\"]> | PEReference | Reference )* '"' ) | ( "'" ( <[^%&\']> | PEReference | Reference )* "'" ) /,