This file contains hidden or 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
<?php | |
/** | |
* Simple Skype-bot to post messages to the Skype chat | |
* | |
* <code> | |
* composer require "botman/botman" "botman/driver-botframework" | |
* </code> | |
* | |
* https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-quickstart?view=azure-bot-service-4.0 |
This file contains hidden or 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
// This required xhr.responseType="blob" | |
window.open(URL.createObjectURL(new Blob([xhr.response], {type: xhr.getResponseHeader('content-type')}))); |
This file contains hidden or 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
$TASKNAME = "my-python-task" | |
$PYTHON = Resolve-Path -Path ".\venv\Scripts\python.exe" | |
$MAIN = Resolve-Path -Path ".\main.py" | |
$WORKINGDIR = Resolve-Path -Path ".\" | |
# Schedule | |
$Action = New-ScheduledTaskAction -Execute $PYTHON -Argument $MAIN -WorkingDirectory $WORKINGDIR | |
$Trigger = New-ScheduledTaskTrigger -Daily -At 3am | |
$Settings = New-ScheduledTaskSettingsSet |
OlderNewer