Skip to content

Instantly share code, notes, and snippets.

View Kyle-Mendes's full-sized avatar
🐰

Kyle Mendes Kyle-Mendes

🐰
  • Discord
  • Massachusetts
View GitHub Profile
@Kyle-Mendes
Kyle-Mendes / cvs-search.js
Last active March 18, 2021 20:33
CVS Vaccine Finder
// Search CVS for available vaccines.
// Right click your page in Chrome (or other browsers)
// Open the console, paste this code, and hit enter.
// Must be run from the "Schedule Dose" page, after entering your Zip Code.
// This script will repeatedly search the CVS website for a vaccine appointment,
// and play the sound of an airhorn when an appointment is available.
// Make sure to have your speakers on!
function search() {
// Find the search button on the page
@Kyle-Mendes
Kyle-Mendes / String.prototype.format.js
Last active January 12, 2016 22:44
String.prototype.format
String.prototype.format = function() {
var self = this,
formats = self.match(/{(:?\d*)}/g), // an array of formats `{}` found in the string
counter = 0, // A counter to keep track of what index to replace with
args = arguments; // Dereferencing arguments for use in the nested code blocks
if (formats) {
formats.forEach(function(format) { // We loop through each format expression in the array
var namedMatch = format.match(/{:(\d+)}/), // Checking if the format is a named replacement (i.e. {:1})
reg;
@Kyle-Mendes
Kyle-Mendes / BottlesOfBeer
Last active August 29, 2015 14:20
Bottles of Beer in C#
using System;
namespace Bottles_of_Beer
{
class Program
{
static void Main(string[] args)
{
CountBeers();
}