Skip to content

Instantly share code, notes, and snippets.

View Dangeranger's full-sized avatar
🦊
🍵 🐕 🚴

Joshua Burke Dangeranger

🦊
🍵 🐕 🚴
View GitHub Profile
@Dangeranger
Dangeranger / deliCounter.js
Last active April 23, 2021 01:01
Deli counter example
// Deli Counter
// 1. take a ticket
// 2. check if our number is up
// 3. order from counter if ready
// 4. change the deli inventory on order
// 5. receive our order, from the counter
// 6. pay for the order
// 7. leave if paid
const readline = require("readline");
@Dangeranger
Dangeranger / random-number-explained.js
Last active June 18, 2021 17:25
A detailed explanation of the function "randomInteger" using comments
/*
* Function randomInteger:
*
* Accepts two numbers, and returns a random integer
* between the min and max inclusive of both numbers
*
* Example Usage:
* randomInteger(1, 10) => 7
* randomInteger(1, 10) => 3
* randomInteger(1, 10) => 9
@Dangeranger
Dangeranger / moveItemDebug.js
Last active August 3, 2021 23:34
An example of moving an item from one Array to another Array
let dinnerFood = ['salad', 'soup', 'casserole'];
let breakfastFood = ['omelet', 'pancakes', 'fruit'];
console.log(`From array: ${breakfastFood}`);
console.log(`To array: ${dinnerFood}`);
function moveItem(itemToMove , fromArray, toArray) {
function extractItem() {
// we know the item is in the starting array
@Dangeranger
Dangeranger / vagrant-vmware-tech-preview-apple-m1-pro.md
Created September 18, 2023 22:35 — forked from sbailliez/vagrant-vmware-tech-preview-apple-m1-pro.md
Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

Vagrant and VMWare Tech Preview 21H1 on Apple M1 Pro

UPDATE November 20, 2022: VMWare Fusion 13

VMWare Fusion 13 is now released. Read Vagrant and VMWare Fusion 13 Player on Apple M1 Pro for the latest.

Summary

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated