Instantly share code, notes, and snippets.

# John Stilley john-science

Last active July 19, 2024 06:04
Training for Chess

# Chess Training

My current goals:

1. Go through my checklist before EVERY move.
2. Stop playing hope chess: if you can find a single weakness in an idea, abandon it and find a new idea.

## The Checklist

Last active July 16, 2024 13:46
A Reading List for Nuclear Engineering

# A Nuclear Engineering Reading List

## The MIT Nuclear Engineering Ciriculum

Last active April 9, 2024 15:27
A handy .bashrc file.
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
 # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # aliases I love alias l='ls -thal' alias lh='ls -thal'
Created April 3, 2024 23:05
Let's solve the Monty Hall problem using Monte Carlo!
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
 """ Modeling the Monty Hall Problem https://en.wikipedia.org/wiki/Monty_Hall_problem Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another
Last active February 14, 2024 15:07
Python script for plotting my weight over time
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
 """ 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,...
Created August 7, 2017 22:53
The classic Snake game, written in Bash.
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
 #!/bin/bash # # Centipede game # # v2.0 # # Author: sol@subnetzero.org # # Functions
Last active May 1, 2023 22:03
Interesting Chess Games

Just various chess games I found interesting. Ideally, I find a PGN and paste it into the lichess analysis board.

YEAR_MM_DD Light Player Dark Player Result Link Thoughts
1834 McDonnell De La Bourdonnais 0-1 W YT An amazing push of three pawns all the way to the 8th rank.
1847 Paul Morphy Alonzo Morphy 1-0 YT L An 8-year-old Paul Morphy beats his father in a very solid game.
1850-05 Paul Morphy Johann Lowenthal 1-0 YT Morphy, 13, wins his first game against a master.
1850-05 Paul Morphy Johann Lowenthal 1-0
Last active March 2, 2023 15:01
Fremont Diner Buttermilk Biscuits Recipe

# Buttermilk Biscuits

Makes 12 2 ½” biscuits

This is a recipe for fluffy biscuits, not flakey. They are best straight out of the oven with butter or jam. Always make extra, they are great split, buttered, and griddled for breakfast sandwiches. We use a food processor to mix the butter and flour. You can use your hands or a fork but using the food processor helps to keep the butter cold which will help make tender biscuits (and it is much faster & more uniform).

Equipment

• food processor
• 2 ½” round biscuit cutter
Last active December 9, 2021 05:27

I had fun building my own LISP (Slow Loris). The project was extremely easy to get off the ground, because there a ton of resources to do just this. I thought it might be handy to have a little links round-up, based on my research.

## In Python

There are already several good projects out there on writing your own LISP in Python.

#### Peter Norvig's LisPy

Last active October 27, 2021 03:10
hot sauces