Skip to content

Instantly share code, notes, and snippets.

Avatar

John Stilley john-science

View GitHub Profile
@john-science
john-science / where_to_buy_coins.md
Last active Jul 1, 2021
Trustworthy Coin Websites
View where_to_buy_coins.md

Trustworthy Websites to Buy Coins

  • US Mint - Only modern US coins and proofs and such. But absolutely trustworthy.
  • VCoins - meta seller. Lots of old coins, lots of price ranges.
  • ma-shops - auction site, but "certified sellers"
  • Great Collections - Small, but all certified from trusted sellers
  • APMEX - good for silver Peace and Morgans
  • USA Coin Book - great for US coins
  • NumisBids - coin auction site. Lots of variety. Hard do search. Good for filling in a hole in a set (you can set an alert).
  • Heritage Auctions
@john-science
john-science / nuclear_systems_notes.md
Last active May 5, 2021
Notes on "Nuclear Systems" by Todreas and Kazimi
View nuclear_systems_notes.md

Notes on "Nuclear Systems"

These are just my notes on the textbook "Nuclear Systems" Volume 1, by Todreas and Kazimi. The textbook seems to be a classic on "Thermal Hydraulic Fundamentals" of nuclear power reactors.

Chapter 1: Principal Characteristic of Power Reactors

This chapter attempts to give a friendly, high-level comparison of the different kinds of nuclear power reactors out there. It gives some reference as to their similarities and differences, and general performance and safety characteristics.

Neutron Energy Range Energy Range Name
@john-science
john-science / physics.md
Last active May 14, 2021
Step Right Up! Who wants to learn Physics?
View physics.md
@john-science
john-science / nuclear_engineering_reading.md
Last active Jun 1, 2021
A Reading List for Nuclear Engineering
View nuclear_engineering_reading.md

A Nuclear Engineering Reading List

Good Places to Start

The MIT Nuclear Engineering Ciriculum

@john-science
john-science / latency.txt
Created Jan 13, 2021 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@john-science
john-science / vode_cython.md
Created Jan 13, 2021
Trying to Convert SciPy.integrate.ode.vode to Cython
View vode_cython.md

Convert SciPy.integrate.ode.vode to Cython

This is a research task. The SciPy Vode ODE solver is 1600 lines of Fortran with 250 goto statements, so a direct translation is actually quite tedious. It would be much easier without the goto statements, or if the code was in C, C++, etcetera.

Links Roundup

@john-science
john-science / chess_training.md
Last active Feb 17, 2021
Training for Chess
View chess_training.md

Chess Training

My current goal: to get from ~900 to >1200.

First, I am looking for people who have trained adults in chess, to see what their strategies are. But also, I will look for adults who managed to improve their own chess game.

Learning Strategies

@john-science
john-science / plot_my_weight.py
Last active May 14, 2021
Python script for plotting my weight over time
View plot_my_weight.py
""" 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)
2010-02-18,165
2010-02-25,156.6
2010-03-11,154.4
"""
View delete_reddit_comment.js
// 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;