Skip to content

Instantly share code, notes, and snippets.

View jonmagic's full-sized avatar

Jonathan Hoyt jonmagic

View GitHub Profile

🪱 3-Tier Worm Composter Setup & Maintenance Guide

🧱 Initial Setup

  1. Bottom Tier (Leachate Collection):
    • This tier does not get bedding, food scraps, or worms intentionally.
    • Its sole purpose is to collect leachate ("worm tea") from the upper composting trays.
    • Do not add newspaper, cardboard, or soil here.
    • Optional: Add twigs, mesh, or screen to help any wandering worms climb back up.
  • Ensure the spigot is open occasionally or place a container underneath to collect liquid.

Cambodian-Thai–Style Drunken Noodles

Based on the dish at Cambodian Thai in South Bend Indiana which I crave on the regular since moving to California in 2012.

Servings: 2 large portions
Scale up as needed.


1. Gather Your Ingredients

require "benchmark"
require "delegate"
require "forwardable"
class Person
def initialize(name, ip)
@name = name
@ip = ip
end
class Reputation
class Error < StandardError; end
def initialize(sample_size:, not_spammy_sample_size:)
@sample_size = sample_size
@not_spammy_sample_size = not_spammy_sample_size
end
attr_reader :sample_size
attr_reader :not_spammy_sample_size
@jonmagic
jonmagic / red_green.ino
Last active July 21, 2019 17:41
Program for red and green light interactive alarm clock.
#include <math.h>
int BUTTON = D0;
int GREEN_LED = D1;
int RED_LED = A4;
int buttonState = 0;
// Takes the current hour (0-23) and multiplies it by 60 (minutes) and then
// adds the minutes after the hour (0-59.
# List unique values in a DataFrame column
# h/t @makmanalp for the updated syntax!
df['Column Name'].unique()
# Convert Series datatype to numeric (will error if column has non-numeric values)
# h/t @makmanalp
pd.to_numeric(df['Column Name'])
# Convert Series datatype to numeric, changing non-numeric values to NaN
# h/t @makmanalp for the updated syntax!
@jonmagic
jonmagic / Adafruit_GPS.cpp
Created April 21, 2018 05:07 — forked from dmiddlecamp/Adafruit_GPS.cpp
Spark GPS demo with Adafruit Ultimate GPS breakout
/***********************************
This is our GPS library
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, check license.txt for more information
All text above must be included in any redistribution
@jonmagic
jonmagic / install-kafka.txt
Created December 11, 2017 05:59 — forked from jarrad/install-kafka.txt
Install Kafka on OSX via Homebrew
$> brew cask install java
$> brew install kafka
$> vim ~/bin/kafka
# ~/bin/kafka
#!/bin/bash
zkServer start
kafka-server-start.sh /usr/local/etc/kafka/server.properties

testing

test