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 / how_far_can_you_see.py
Last active August 29, 2015 14:18
How far can you see?
'''
How far away is the horizon?
How far away is that mountain?
How far away can something (on the Earth) be that I can still see it?
All good questions. Let's answer them.
'''
from math import sqrt
@john-science
john-science / git_primer.md
Last active April 26, 2016 19:13
A High-Level Git Introduction

A QUICK, high-level Git Introduction

The What, Why and How of starting your own private Git repo.

What:

Git is just a place for us all to keep our code/scripts/information.

What git does:

@john-science
john-science / governments_on_github.md
Last active April 26, 2016 20:22
Is GitHub right for your government agency?

Government on GitHub

What is GitHub? Is GitHub right for your government agency?

What is Git?

Git is a command-line tool that helps people who write software in several key ways:

  1. Git is a place to store all your code.
  2. Git tracks all your changes.
@john-science
john-science / happiness.md
Last active April 26, 2016 22:31
What makes a person happy?

What makes a person happy?

I'm mortal and want to enjoy the little time I have in existence. A young waitress once asked the Dalai Lama what the meaning of life is, and he replied "happiness". I'm not sure how she felt about that answer, but it feels right to me. Though it turns out he wasn't advocating complete hedonism (see Existentialism vs Nihilism).

I want to spend a little time once in a while cultivating a collection of discusssions on what makes people happy.

Do I think I will find the answer? No.

I just think it is worth a little time every now-and-again considering my own happiness, fullfillment, or peace-of-mind.

@john-science
john-science / river_songs_timeline.md
Last active May 11, 2016 17:17
River Song's Timeline

River Song's Timeline

I want to re-watch all of the Doctor Who TV episodes with River Song, but from her timeline.

Beware, sometimes a single episode of Doctor Who shows River Song at two very different parts of her timeline. This is particularly true for the beginning of her timeline. The list below is the best we can do without breaking episodes into pieces.

River Song's Timeline - by Episode

Series Story Episode Name

Poker, the Ultimate Data Science Test

If you could solve poker with data science, you could make a lot of money any time you want.

Modeling a Deal

If we want to model poker, the first step is to model a single deal of the cards. Now, casinos might deal from more than one deck. But let's start by modeling a single deal from a single 52-card deck:

def sample (n, m):

s = []

@john-science
john-science / web_comics.md
Last active October 11, 2016 22:41
Web Comics Links
@john-science
john-science / reading_list_software.md
Last active November 8, 2016 22:53
Topics of interest. Things I've been readnig lately. Software.

Software Reading List

This is just a place for me to keep links that I've found interesting on various topics I've been interested in lately.

Blogs

  • MEWO2 - Machine Learning, Twitter Bots, & Game Dev
  • Climate Change - Only a little software talk, but looks interesting.

A BS in CS

@john-science
john-science / portrait_artists.md
Created March 1, 2017 16:18
Facial Recognition takes up so much of our minds.
@john-science
john-science / why_text_based_games_rock.py
Last active April 5, 2017 15:58
Why Text-Based Games Rock
from matplotlib.font_manager import FontProperties
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.style.use('ggplot')
def main():
# make plot objects
#fig, ax = plt.subplots(figsize=(8, 9), facecolor='white') # 800px-wide version