Skip to content

Instantly share code, notes, and snippets.

View Ethan-Bierlein's full-sized avatar

Ethan Bierlein Ethan-Bierlein

  • Bloomington, MN
View GitHub Profile
@NickCraver
NickCraver / BotLovin.cs
Last active January 5, 2023 11:36
Some bot/crawler fun on Stack Overflow. 10 hours of fun, to be precise.
private static readonly string[] tenHoursOfFun =
{
"https://www.youtube.com/watch?v=wbby9coDRCk",
"https://www.youtube.com/watch?v=nb2evY0kmpQ",
"https://www.youtube.com/watch?v=eh7lp9umG2I",
"https://www.youtube.com/watch?v=z9Uz1icjwrM",
"https://www.youtube.com/watch?v=Sagg08DrO5U",
"https://www.youtube.com/watch?v=5XmjJvJTyx0",
"https://www.youtube.com/watch?v=IkdmOVejUlI",
"https://www.youtube.com/watch?v=jScuYd3_xdQ",
@rlemon
rlemon / cider.md
Last active September 29, 2015 00:30
Making Cider

Making Hard Cider (easy)

Required Equiptment:

  1. 23L (5 Gal) carboy.
  2. Vapour lock and bung that fits your carboy (normally this can be purchased at the same place as the carboy).
  3. Brewers yeast. There are many different kinds and I normally find "D47" yeast to be the best, but close champagne yeasts should do good enough. Do not use bakers yeast. I normally put two packs into a carboy. However if you notice it is not fermenting past 1 and a half weeks add another and gently swish the cider around in the carboy.
  4. Apple Cider. I use 12L of pasteurized apple cider purchased from my local grocer. If you can get unpasteurized ensure you heat it to ~90C (194F) for 30 minutes. DO NOT BOIL IT!.
  5. Santizer. StarSan is what most people use, but any phosphoric acid should work.
  6. Bleach. This is used to clean the carboy after used. Do this immediatly after bottling to avoid using a brush to get off nasty spots.
@Phrancis
Phrancis / mongodb.py
Last active September 10, 2015 01:29
MongoDb fun with PyMongo
import pymongo
phrancis = {
"userName": "Phrancis",
"firstName": "Francis",
"lastName": "Gaboury",
"roles": ["Game Designer", "Web Designer"],
"countryOfOrigin": "Canada",
"likes": ["spicy foods", "racing games", "databases"]
}
@jagt
jagt / gist:5563131
Last active April 3, 2020 02:31
PEG parser using parsimonious
# PEG parser using parsimonious
from parsimonious.grammar import Grammar
from pprint import pprint
# MUST USE " - double quote in regex literal or gave very strange error messagas
# comment handling seems very difficult...
grammar = Grammar(
'''
record = name "=" value
name = _ ~"\w+" _