Skip to content

Instantly share code, notes, and snippets.

View john-science's full-sized avatar

John Stilley john-science

View GitHub Profile
@john-science
john-science / plot_my_weight.py
Last active February 14, 2024 15:07
Python script for plotting my weight over time
""" plot_my_weight.py
This is a simple scatter-and-line plot of my body weight at various times. The challenge is that
the data is very irregular. This program reads in a CSV of this form:
datetime,weight(lbs),Steps,Meals,Calories,Run (km),anything,else...
2010-02-18,165
2010-02-25,156.6
2010-03-11,154.4
2022-06-22,159.1,10000,2,1500,5,...
@john-science
john-science / delete_reddit_comment.js
Last active June 6, 2020 15:26
delete Reddit comments
// Log in to Reddit, open you comment page, and paste this into your Console. Done
var $domNodeToIterateOver = $('.del-button .option .yes'),
currentTime = 0,
timeInterval = 500; // minimum time between deletes
$domNodeToIterateOver.each(function() {
var _this = $(this);
currentTime = currentTime + Math.floor(Math.random() * timeInterval) + timeInterval;
@john-science
john-science / python.dockerfile
Last active July 11, 2021 22:56
Installing Python v3.8 dev on Ubuntu 20.04 via Docker
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install --no-install-recommends -y python3-pip python3.8-dev && \
apt-get install vim && \
apt-get install git
@john-science
john-science / buying_a_robotic_vaccuum_2020.md
Last active March 24, 2020 19:23
I want to but a cheap robotic vaccuum.

Hunting for a Cheap Robot.

It is 2020 and for some reason I don't have a robot cleaning up after me.

What gives? I'm lazy and want to future already.

My requirements:

  1. Cheap. - Well, as cheap as I can get.
  2. No spyware. - I don't want this thing to have wifi or phone home to it's parent corporation. I am it's parent.
@john-science
john-science / Robe_of_Augmentation.md
Last active February 16, 2020 21:20
Proposal for Changes to Robe of Augmentation

Proposal for Replacing the Robe of Augmentation

Step 1: Remove this robe

Step 2: Add an unrandart based on Quicksilver Dragon Scales

Why Dragon Scales?

Let's take stock of the kinds of unrandart armors we currently have. If you ignore what makes them unique, the base armour types are:

@john-science
john-science / THE_keyboard.md
Created October 7, 2019 16:49
An Erogonomic Keyboard Dream List
@john-science
john-science / linux_roguelikes.md
Last active August 23, 2019 11:46
Linux-Friendly Roguelikes
@john-science
john-science / mapping_a_village.md
Created March 11, 2019 19:35
building a map of a fictional village

Mapping a Village

Often, in the process of writing for fantasy, we need to create little towns and villages. I feel like these are rarely practical or realistic creations. But why not? There are so many resources to draw from. Let's look at some little villages, particularly old ones, and see what they look like.

Burg Frankenstein

This is a village so iconic it inspired one of the first horror / sci-fi novels. There is a creepy-ass castle over-looking a tiny village that winds along a little river in a deep valley cut through the mountains:

@john-science
john-science / my_distros.gv
Last active January 22, 2019 13:50
Linux Distros I Have Known and Loved
digraph distros{
rankdir="LR";
node [color=lightgrey, fillcolor=lightgrey, shape=note]
Ubuntu [color=purple];
"Scientific Linux" [color=green];
CentOS [color=Orange];
Kali [color=CornflowerBlue];
Raspbian [color=red];
Linux -> Debian;