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
#Copyright (C) 2014 Marc Herndon | |
# | |
#This program is free software; you can redistribute it and/or | |
#modify it under the terms of the GNU General Public License, | |
#version 2, as published by the Free Software Foundation. | |
# | |
#This program is distributed in the hope that it will be useful, | |
#but WITHOUT ANY WARRANTY; without even the implied warranty of | |
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
#GNU General Public License for more details. |
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
#Copyright (C) 2014 Marc Herndon | |
# | |
#This program is free software; you can redistribute it and/or | |
#modify it under the terms of the GNU General Public License, | |
#version 2, as published by the Free Software Foundation. | |
# | |
#This program is distributed in the hope that it will be useful, | |
#but WITHOUT ANY WARRANTY; without even the implied warranty of | |
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
#GNU General Public License for more details. |
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
/* ==================================================================== | |
* File: scale.js | |
* Authors: Lee Cardona | |
* Copyright (c) 2016 Nuvem Newtworks Inc. All rights reserved. | |
* ==================================================================== | |
*/ | |
var scale = { | |
init : function () { | |
scale.setValues() |
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
//HTTPS CLIENT REQUEST OPTIONS | |
HTTPSClient['requestBody' ] = {} | |
HTTPSClient['requestOptions'] = {} | |
HTTPSClient['requestOptions']['host' ] = '' | |
HTTPSClient['requestOptions']['port' ] = 443 | |
HTTPSClient['requestOptions']['path' ] = | |
HTTPSClient['requestOptions']['method' ] = | |
HTTPSClient['requestOptions']['headers'] = | |
HTTPSClient['requestOptions']['headers']['Content-Type' ] = 'application/json' | |
HTTPSClient['requestOptions']['headers']['Content-Length'] = HTTPSClient.byteCount(JSON.stringify(HTTPSClient['requestBody'])) |
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
//DEFINE REGEX - valid input range is 100 thru 599 | |
var regEx = /^[1-5][0-9][0-9]$/ | |
//TEST REGEX | |
regEx.test(99) | |
=>false | |
regEx.test(100) | |
=>true |
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 sayHello(){ | |
console.log('\nHello World\n'); | |
})(); |