This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Bottles_of_Beer | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
CountBeers(); | |
} |