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
from PIL import Image | |
img_path="path_to/image.tiff" | |
image = Image.open(jpg_path) | |
# get the current width and height | |
width, height = image.size | |
# Setting the points for cropped image | |
# you can change these values |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp3.0</TargetFramework> | |
</PropertyGroup> | |
</Project> |
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
{ | |
"api_version": "1.0", | |
"metadata": { | |
"sector": "weather", | |
"title": "Weatherzone", | |
"provider_name": "Weatherzone", | |
"provider_url": "http:\/\/www.weatherzone.com.au", | |
"project_version": "3.23", | |
"revision": 30006, | |
"last_commit": "2019-10-10 08:55:00 +1000 (Thu, 10 Oct 2019)", |
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
{ | |
"5MIN": [ | |
{ | |
"SETTLEMENTDATE": "2019-10-10T08:30:00", | |
"REGIONID": "NSW1", | |
"REGION": "NSW1", | |
"RRP": 102.47000, | |
"TOTALDEMAND": 7494.60000, | |
"PERIODTYPE": "ACTUAL", | |
"NETINTERCHANGE": -5.85000, |
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
version: '3' | |
services: | |
# docker-compose run ps | |
ps: | |
image: mcr.microsoft.com/powershell:ubuntu-xenial | |
stdin_open: true | |
tty: true | |
container_name: ps1 | |
volumes: | |
- ./:/your_code |
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
choco install -y git hyper vscode windirstat nvs python azure-cli docker-desktop make docker-kitematic dotnetcore-sdk gitkraken microsoftazurestorageexplorer miniconda3 |
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
set -e | |
# update OS | |
sudo apt update && sudo apt full-upgrade -y | |
# update some bluetooth drivers | |
sudo apt-get install -y pi-bluetooth bluez bluez-firmware libbluetooth-dev libudev-dev | |
# Download and install the moby-engine | |
curl -L https://aka.ms/moby-engine-armhf-latest -o moby_engine.deb && sudo dpkg -i ./moby_engine.deb |
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
#!/bin/bash | |
# Run this last to setup and start IoT Edge Runtime | |
set -x | |
set -e | |
echo "Setting up IoT Edge runtime" | |
if [ -z $1 ] | |
then | |
echo "Usage: ./setup-iotedge.sh <Connection-String>" | |
exit 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
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
namespace MyApp.Api.Controllers | |
{ | |
public class EventsController : ApiController |
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
//---------------------- | |
// <auto-generated> | |
// Generated using the NSwag toolchain v11.9.0.0 (NJsonSchema v9.7.1.0 (Newtonsoft.Json v9.0.0.0)) (http://NSwag.org) | |
// </auto-generated> | |
//---------------------- | |
// https://docs.botframework.com/en-us/restapi/directline3/swagger.json | |
namespace Microsoft.BotFramework.DirectLine | |
{ |
NewerOlder