04/04/2016
Bio: Morningsleep = 7 hours
wakeup = 1:30 PM
bw = 150
morning resting heart rate = didn't measure
soreness = adductors alot (especially right)
aches = right tennis elbow slightly, right adductor
injuries = toenails wrekt
feel = good
Food4 PM
- boston market: quarter chicken
- small serving of stuffing, mashed potatoes
Session: Evening8 PM
run:
- 9.19 mi in 1h:11m:54s
- moderate run, worked on stride mostly but stayed relaxed
- right adductor bugging a little bit at times
Food9:30 PM
- small bit of ice cream
- hot mint tea
Food12 AM
- big bowl of cheerios with 2% milk & honey
- greek yogurt
- grape fruit juice
Food5 AM
- greek yogurt
- some black bean chips
lots of coding today.. got some decent stuff done. also added in moment.js via purescript-simple-moment to the code.. so now timestamps are displayed all pretty. however, i have to jump through some hoops to get those timestamps, which really sucks.. but that's the separation of the view from the eval function in a purely functional lang, i can't do anything with side effects inside the view.. so I have to created the moment-ified date strings in the eval function .... which means I have to created new fields for each data structure:
createdAt :: DateMaybe,
createdAtMoment :: String,
then I have to patch each data structure once I pull them in via the api with ajax.. I mean it's fine but, it's more work creating those fields and patching each data type after I pull it in. Don't see any other way around it though.. i'm locked in with no ability to communicate with the outside world, when i'm in these pure views.
HEHE
EDIT:
or....... create a pure version of moment, entirely in purescript. Then I wouldn't have to go through any of this trouble..
https://github.com/moment/momenthttp://momentjs.com/docs/that's alot of code for such a simple lib.. ;f I could probably knock something out that's much more simple and does the job just fine.
pc!