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
def evaluate_path(path, alternative_root = None): | |
#alternative_root can be used to define a default parent root object if user is not expected to enter full path | |
#Note: full paths start with "bpy." | |
if(path is None or path == ""): | |
return (None, None, None) | |
#Regular expression pattern to match segments of the path | |
pattern = r'(.+?)\.|(?:\["(.+?)"\])|([^"\[\]]+)' | |
segments = re.findall(pattern, path) | |
parent_obj = None | |
enumerate_from = 0 |
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
/** | |
* Returns Balance From Flexpool api v2 | |
* | |
* @param {string} account (required) | |
* @return {number} Amount in balance | |
* @customfunction | |
**/ | |
function FlexPoolBalance(account) { | |
let Result = 0; | |
coinType = "eth"; |
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
REM Set your powershell script filepath here | |
set scriptpath="C:\Tools\Devcon\RunBatchBasedOnDisplayAdapterCount.ps1" | |
timeout 15 | |
REM Run PowerShell in CMD file | |
REM source:https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-startup-tasks-common | |
REM Attempt to set the execution policy by using PowerShell version 2.0 syntax. | |
PowerShell -Version 2.0 -ExecutionPolicy Unrestricted %scriptpath% >> "%TEMP%\StartupLog.txt" 2>&1 |
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
/** | |
* Returns Market Value From Coingecko api | |
* Function accepts ranges as well, please use it to reduce server lookups, so it fetches data only once. | |
* Update: 17.02.2020 | |
* | |
* @param {string} symbol pair (required) | |
* @param {string} Default Value Missing Data (optional) | |
* @return {number} ticker price | |
* @customfunction | |
**/ |
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
/** | |
* Returns Ticker Price From TradeOgre exchange | |
* Function accepts ranges as well, please use it to reduce server lookups, so it fetches data only once. | |
* | |
* @param {string} ticker name | |
* @param {string} ticker type | |
* @return {number} ticker price | |
* @customfunction | |
**/ | |
function ReturnTickerPrice(TickerName, TickerType) { |