Skip to content

Instantly share code, notes, and snippets.

View vaer-k's full-sized avatar
🏠
Working from home

Vincent Raerek vaer-k

🏠
Working from home
View GitHub Profile
@vaer-k
vaer-k / README.md
Last active April 1, 2021 18:14 — forked from gregwebs/Walgreens-covid-userscript.md
Help refresh the Walgreens covid vaccine appointment page

UserScript for refreshing the Walgreens covid vaccine appointment page

Please note that you must be eligible to get the vaccine. If you are not eligible for the vaccine, this will not help you. In that case the only thing you can do is try showing up at the end of the day at a vaccination site to see if they have any leftovers that need to be used up.

Installation

  1. Install the TaperMonkey extension.
  2. Add this script.
@vaer-k
vaer-k / welford.py
Created February 13, 2018 22:34 — forked from alexalemi/welford.py
Python Welford Algorithm
import math
class Welford(object):
""" Implements Welford's algorithm for computing a running mean
and standard deviation as described at:
http://www.johndcook.com/standard_deviation.html
can take single values or iterables
Properties:
mean - returns the mean
@vaer-k
vaer-k / matplotlib-zeppelin
Last active September 29, 2017 21:58 — forked from andershammar/matplotlib-zeppelin
Example showing how to use matplotlib from a Zeppelin notebook
%pyspark
import matplotlib.pyplot as plt
z.configure_mpl(width=400, height=300, fmt='svg')
# Example data
people = ('Goku', 'Vegeta', 'Gohan', 'Raditz', 'Trunks')
y_pos = np.arange(len(people))
performance = 3 + 10 * np.random.rand(len(people))
error = np.random.rand(len(people))
/**
* An implementation for Quicksort. Doesn't
* perform as well as the native Array.sort
* and also runs the risk of a stack overflow
*
* Tests with:
*
* var array = [];
* for(var i = 0; i < 20; i++) {
* array.push(Math.round(Math.random() * 100));