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
| az container create \ | |
| --resource-group <resource-group-name> \ | |
| --name <container-instance-name> \ | |
| --image <docker-image-name> \ | |
| --azure-file-volume-account-name <file-storage-name> \ | |
| --azure-file-volume-account-key <file-storage-key> \ | |
| --azure-file-volume-share-name <file-share-name> \ | |
| --azure-file-volume-mount-path /aci/status/ |
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
| const puppeteer = require('puppeteer'); | |
| const statusTextSelector = '.someClassname'; | |
| const trackingUrl = 'http://ozcouriers.com.au'; | |
| const extractStatus = async () => { | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| await page.goto(trackingUrl, {waitUntil: 'networkidle2'}); | |
| await page.waitFor(statusTextSelector); |
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
| body { | |
| margin: 0; | |
| padding: 0; | |
| font-family: sans-serif; | |
| background-color: rgba(0,0,0,0); | |
| } | |
| #transcriptContainer { | |
| background-color: rgba(0,0,0,0.6); | |
| width: 100%; |
- 13" Macbook Pro 3.3 GHz i7 (late 2016)
- Microsoft Surface Book (2016)
- Dell up3216q 32" monitor
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
| client | |
| .refresh() | |
| .then(function () { | |
| return client.get(); // return your promise | |
| }) | |
| .then(function (result) { | |
| // result is the return of client.get() | |
| }) | |
| .catch(); |
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
| 'use strict'; | |
| const https = require("https"); | |
| const uuid = require("uuid/v4"); | |
| const IotClient = require("azure-iothub").Client; | |
| const IotMessage = require("azure-iot-common").Message; | |
| // main function | |
| module.exports = function (context, eventHubMessage) { | |
| // log this for debugging |
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
| const avrpizza = require('avr-pizza'); | |
| const Avrgirl = require('avrgirl-arduino'); | |
| const package = { | |
| sketch: 'blink.ino', | |
| board: 'uno' | |
| }; | |
| const avrgirl = new Avrgirl({ | |
| board: 'uno', |
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
| if test -f /etc/profile.d/git-sdk.sh | |
| then | |
| TITLEPREFIX=SDK-${MSYSTEM#MINGW} | |
| else | |
| TITLEPREFIX=$MSYSTEM | |
| fi | |
| PS1='\[\033]0;$TITLEPREFIX:${PWD//[^[:ascii:]]/?}\007\]' # set window title | |
| PS1="$PS1"'\[\033[35m\]' # change to purple | |
| PS1="$PS1"'\W' # current working directory |
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
| const Avrgirl = require('avrgirl-arduino'); | |
| const lilypad = { | |
| name: 'lilypadUSB', | |
| baud: 57600, | |
| signature: new Buffer([0x43, 0x41, 0x54, 0x45, 0x52, 0x49, 0x4e]), | |
| productId: ['0x9207', '0x9208', '0x1B4F'], | |
| protocol: 'avr109' | |
| }; |