Skip to content

Instantly share code, notes, and snippets.

View daneharrigan's full-sized avatar

Dane Harrigan daneharrigan

View GitHub Profile
// General ideas:
// - A project hides SQL in custom db package and exposes CRUD methods
// - I can generate that db package interface with protoc
// - time.Time has to be converted into timestamp.Timestamp for a gRPC service to use the value
// - database/sql writes to a time.Time and I convert that into timestamp.Timestamp.
// All conversions are kept in a single package.
// - gRPC has error types that map to SQL errors such as not found, already exists, etc.
// - database/sql will only write a timestamp to `time.Time`
// - I map errors like sql.ErrNoRows to gRPC's equivalent

Notes

  • Go heavy. lifting heavy reminds your body to retain it's muscle. light/volume workouts when cutting aren't ideal.
  • Hitting a muscle 72 times (72 reps) a week will make it grow. It takes 30% of that to maintain the muscle you have.
  • Going heavy with 5x5 addresses the two previous points. I typically do 2 light sets to warm up before going into the heavy 5x5.
  • Repeat the same lifts, with the same weights, in the same order if possible. This will allow you to see if you're losing or maintaining your strength.
  • Calculate (220 - your age) * 0.6 and (220 - your age) * 0.7. That's your fat burning heart rate. 30min in that range should boost your metabolism for 48hrs.
  • HIIT burns calories you've eaten today. LISS (what i described above) burns what you already have stored.
  • Cardio is better after lifting, but I wont do it, if it's not first.
  • I use the stairmaster for all of my cardio. It is considered one of the best forms of cardio in terms of fuctional and effectiveness.

Dane's Meal Plan

Target: 1850cal Carbs 162g Fats 51g Protein 185g

I follow this plan every day. It's based around a 5-6:30pm workout.

Cheat days address two things, eating things you like and getting a variety of

const dataset = [
{
"key":'a',
"children": [
{
"key":'a1',
"children": [
{
"key":'a1a',
"children": [],
// example navigating to content #4 with reset
const action = NavigationActions.reset({
index: 0,
actions: [
NavigationActions.navigate({ routeName: 'Example', params: { title: '4' }}),
],
});
// or example navigating to content #4 with navigate
const action = NavigationActions.navigate({
module.exports = {
"extends": "airbnb",
"plugins": [
"react",
],
"parser": "babel-eslint",
"rules": {
"jsx-a11y/alt-text": 1,
"jsx-a11y/aria-role": 1,
"jsx-a11y/img-redundant-alt": 1,

Longbow (335)

  • AA: 68
  • Ambush: -25
  • Hidden Hand: 15
  • Total: 58

Longbow (330)

  • AA: 68
  • Hawkeye: 3
  • Total: 71
<?php
// i made some pretend subscriptions, but used the same variable name as you.
$allMfSubs = array(
1 => array("id" => 1, "name" => "foo", "slug" => "1-foo", "for_sale" => true, "price" => 100),
2 => array("id" => 2, "name" => "bar", "slug" => "2-bar", "for_sale" => true, "price" => 200),
3 => array("id" => 3, "name" => "baz", "slug" => "3-baz", "for_sale" => true, "price" => 300),
4 => array("id" => 4, "name" => "cux", "slug" => "4-cux", "for_sale" => true, "price" => 400),
5 => array("id" => 5, "name" => "qux", "slug" => "5-qux", "for_sale" => true, "price" => 500),
);
package main
import (
"compress/gzip"
"encoding/json"
"io"
"net/http"
)
type GzipHandler struct {
let colors_name = "ml"
syntax enable
set background=light
hi Comment ctermfg=gray ctermbg=NONE cterm=NONE
hi ColorColumn ctermfg=black ctermbg=lightgray cterm=NONE
hi Conceal ctermfg=black ctermbg=NONE cterm=NONE
hi Cursor ctermfg=black ctermbg=NONE cterm=NONE