- 編集ファイルを保存後に、scriptを実行する。
- ctrl+F5で、外部プログラム(cscript.exe, node.js, etc)を起動して、jsの動作確認をするが、この際、複数のスクリプト(wshとnodeとpowershell)を並行で開発している際に利用できる。
- node用、powershell用も作ると分けて起動できる。
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
// map-loop.jse | |
// + sakura macro folder | |
// + lib | |
// + StringUtil.jse | |
// + DateUtil.jse | |
// + Dialog.jse | |
// + File.jse | |
// + FileUtil.jse | |
// + json2.js | |
// + mustache.js |
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
// import { fileURLToPath } from "url"; | |
/** | |
* @param {string} str | |
* @returns {number} ret | |
*/ | |
// const doMain = (str:string):number => { | |
const doMain = (str) => { | |
// --------------------- begin. | |
console.info("// ------------------ begin."); |
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 ( | |
"fmt" | |
) | |
func getMessage(name string) string{ | |
ret := fmt.Sprintf("Hello, %v!", name) | |
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
#!/usr/bin/env dotnet-script | |
using System; | |
using System.Reflection; | |
using System.Diagnostics; | |
using System.Collections.Generic; | |
static int doMain(string str) | |
{ | |
// -------------------- begin. | |
var info = MethodBase.GetCurrentMethod(); |
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 doMain() { | |
## function spec | |
[OutputType([int])] | |
Param( | |
[string]$str | |
) | |
## -------------- begin. | |
begin |
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(){ | |
/////////////////////////////////////// | |
// here-string CRLF | |
// ↓↓↓↓↓↓↓↓↓ | |
var herestrings = function(){ | |
/* | |
## memo : yy/MM/dd(ddd)hh:mm : |
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
Public Sub run() | |
''' /******************************************************** | |
Console.info "----- Try Code start--------------!" | |
Call getParamArray(1, 2, 3, 4, 5) | |
Console.info "----- Try Code -------------- end!" | |
End Sub | |
Private Sub getParamArray(ParamArray ary() As Variant) | |
''' /******************************************************** | |
Dim i As Integer |
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 | |
''' /**************************************** | |
''' * @file Tool_ModuleExporter.cls | |
''' * @version 1.00 | |
''' * @since 2020/03/31 | |
''' */ | |
' | |
''' /******************************************************** | |
''' * @class T_ModuleExporter | |
''' * @classdesc Module Exporter |
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
const Shell = require("node-powershell"); | |
const pwsh = new Shell({ | |
executionPolicy: "Bypass", | |
noProfile: true | |
}); | |
let cmd_statement1 = 'echo "Hello node and powershell"'; | |
let cmd_statement2 = 'ls'; |
NewerOlder