Skip to content

Instantly share code, notes, and snippets.

Morning routine template

Part 1: Wake up

Remember not to snooze, get some natural light on your face, and turn on as many lights as you can to signal to your body that it’s time to be awake. If you don’t shower immediately, try washing your face right after getting up to help your eyes feel more awake, too.

  • 1.
  • 2.
  • 3.

Review past week

  • Review calendar events from the past week: Do you need to follow-up with anyone? Are there action items from any of those events you need to get done?
  • Review your weekly or monthly goals: Did you achieve any goals last week? Did you move forward on longer-term goals? Do you need to adjust your process this week?
  • Reflect on the past week: Did the week feel successful as a whole? Could it have been better? What were the good and bad parts?

Prepare for upcoming week

  • Review calendar events for the week ahead: Do you need to prepare notes or research for any events? Do you need to confirm times and places?
  • Review monthly and quarterly goals: Is there anything you can do this week to move towards your goals?
- (void)readAverageValueFromHealthKitWithIdentifier:(HKQuantityType *)identifier
unit:(HKUnit *)unit
options:(HKStatisticsOptions)options
startDate:(NSDate *)startDate
andEndDate:(NSDate *)endDate
completionBlock:(void (^)(NSError *error, NSDictionary *dict))completionBlock {
// HKQueryOptionStrictStartDate requires any samples HealthKit
// returns to have start dates that fall within the period
// between the start and end dates we pass in here
- (NSArray <NSDictionary <NSString *, NSNumber *>*>*)weightValues:(int)numberOfValues
fromData:(NSArray <NSDictionary <NSString *, NSNumber *>*>*)healthKitData
usingDates:(NSArray <NSDate *>*)dates {
// Make a dictionary with a date string key
// (e.g. "2017-01-04") and a value of zero for each date
NSMutableDictionary *datesAndValues = [[NSMutableDictionary alloc] initWithCapacity:dates.count];
// Make an array of date strings to use when looping and comparing dates
NSMutableArray *dateStrings = [[NSMutableArray alloc] initWithCapacity:dates.count];