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
/** | |
* I know that the process.hrtime as a higher precision over the | |
* Date constructor object so it's not a "fair" benchmark, | |
* but if you doesn't need a high precision timer and you just want | |
* to compare the fastest time subtraction this benchmark can | |
* be usefull | |
* | |
* Licensed under MIT | |
* Copyright (c) 2020 [Samuel Carreira] | |
*/ |
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
'use strict'; | |
const cp = require('child_process'); | |
// learn more - documentation: | |
// windows: https://technet.microsoft.com/en-us/library/bb491003.aspx?f=255&MSPPError=-2147217396 | |
// macos: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/shutdown.8.html | |
// linux: https://www.computerhope.com/unix/ushutdow.htm | |
/** |
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
; Get Slack notification when someone installs your app | |
; by: Samuel Carreira | |
; -- Basic code from Inno Setup Example1.iss -- | |
#define MyAppVersion "0.1.0" | |
#define MyAppName "Your App Name" | |
[Setup] | |
AppName=My Program |