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 factorial(number) { | |
var temp = number; | |
for (var i = 1; i < number; i++){ | |
temp *= i; | |
} | |
console.log(`${number}! is ${temp}.`); | |
} |
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 countdown(endDate) { | |
let days, hours, minutes, seconds; | |
endDate = new Date(endDate).getTime(); | |
if (isNaN(endDate)) { | |
return; | |
} | |
setInterval(calculate, 1000); |
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
async function startProgram() { | |
setMainLed({ r: 0, g: 0, b: 255 }); | |
// Exaggerated spellings for correct pronounciation | |
var hellos = ["Koomoosta", "Hawlow", "Hello", "Ola"]; | |
for (var i = 0; i < hellos.length; i++) { | |
clearMatrix(); | |
setMainLed({ r: 255, g: 255, b: 90}); | |
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
# Login via azure CLI | |
az login | |
# It's a good idea to dedicate a resource group to a container registry | |
# so that you can share images or delete containers without deleting images accidentally | |
# Create a resource group for your container registry | |
az group create --location <REPLACE-WITH-AZURE-LOCATION> | |
--name <REPLACE-WITH-RESOURCE-GROUP-NAME> | |
--subscription <REPLACE-WITH-YOUR-SUBSCRIPTION-NAME> |