Skip to content

Instantly share code, notes, and snippets.

View MouseEatsCat's full-sized avatar

Michel Descoteaux MouseEatsCat

View GitHub Profile
@mducharme
mducharme / PizzaCalculator.js
Last active February 21, 2024 16:22
Enterprise-Level Typescript Pizza Calculator
// Import the EventEmitter class from Node.js for creating and handling custom events.
import { EventEmitter } from 'events';
// Define an interface for the configuration settings needed for pizza calculation.
interface IConfiguration {
slicesPerPerson: number; // Number of pizza slices each person will eat.
slicesPerPizza: number; // Number of slices that each pizza is divided into.
}
// Define an interface for the calculator, which will compute the number of pizzas needed.
<?php
/**
* Locomotive Bedrock Valet Driver
*
* Supported Valet Version: 4
*/
namespace Valet\Drivers\Custom;
@MouseEatsCat
MouseEatsCat / CharcoalValetDriver.php
Last active January 8, 2024 18:25
CharcoalValetDriver
<?php
/**
* Charcoal Valet Driver
*
* Supported Valet Version: 4
*/
namespace Valet\Drivers\Custom;