Skip to content

Instantly share code, notes, and snippets.

Avatar
🍰
Probably eating cake

Adrienne Tacke adriennetacke

🍰
Probably eating cake
View GitHub Profile
@adriennetacke
adriennetacke / createAzureContainerRegistry.sh
Created Jul 27, 2020
Create an Azure Container Registry via Azure CLI - Demo 1 from Adrienne Tacke's talk "Containers and You: The Azure Edition"
View createAzureContainerRegistry.sh
# 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>
@adriennetacke
adriennetacke / helloEveryone.js
Last active Oct 4, 2019
Sphero BOLT Hello Everyone! Program - Simple program to have BOLT say hello in different languages while animating the origin country's flag.
View helloEveryone.js
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});
@adriennetacke
adriennetacke / countdown.js
Last active Dec 28, 2020
Countdown timer in pure JavaScript
View countdown.js
function countdown(endDate) {
let days, hours, minutes, seconds;
endDate = new Date(endDate).getTime();
if (isNaN(endDate)) {
return;
}
setInterval(calculate, 1000);
@adriennetacke
adriennetacke / factorial.js
Created Aug 3, 2016
Factorial function in Javascript.
View factorial.js
function factorial(number) {
var temp = number;
for (var i = 1; i < number; i++){
temp *= i;
}
console.log(`${number}! is ${temp}.`);
}