Skip to content

Instantly share code, notes, and snippets.

View adriennetacke's full-sized avatar
🍰
Probably eating cake

Adrienne Braganza Tacke adriennetacke

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