Skip to content

Instantly share code, notes, and snippets.

John Muir Trail (JMT)

I hiked the JMT with sister and parter in July of 2019. These are my assorted notes:

Itinerary

7/18 (9 miles): start in tuolomne meadows, camp below donahue pass
7/19 (10): donahue pass, island pass, camp below island pass
7/20 (12): camp near trinity lakes
7/21 (11): reds resupply, camp near deer creek
7/22 (13): camp near fish creek

@enmyj
enmyj / merge_questions.py
Created February 19, 2018 14:21
Pandas merge on only year, month, day, and hour parts of datetimeindex
#%% import libs
import pandas as pd
import numpy as np
#%% make fake dataframes with datetimeindex
# df1 is has minute intervals
# df2 has hour intervals
df1 = pd.DataFrame(np.random.randn(525600,4),
index=pd.date_range('1/1/2011',
periods=525600, freq='Min'),
@enmyj
enmyj / 538_riddler_20171215.py
Last active December 18, 2017 05:24
Attempted Solution to Five Thirty Eight Riddler Express from 20171215
#!/usr/bin/env python3
"""
This script attempts to solve the Riddler express problem from
20171215: https://fivethirtyeight.com/features/please-help-me-i-have-a-number-problem/
This script is super brute force and not really useful, although it does work
Potential improvement would be to target numbers that are likely to have
longer words like "seven", "three" or a teen number

Keybase proof

I hereby claim:

  • I am enmyj on github.
  • I am imyjer (https://keybase.io/imyjer) on keybase.
  • I have a public key whose fingerprint is B222 9E7A 897C B793 E9D3 821C 4424 463B B661 7438

To claim this, I am signing this object: