Skip to content

Instantly share code, notes, and snippets.

@ROTGP
ROTGP / howTo.txt
Created January 3, 2019 12:24 — forked from abdumu/howTo.txt
"This connection is not private" + "Valet" + "iOS Simulator"
-1- edit ~/.composer/vendor/laravel/valet/cli/stubs/openssl.conf
Change:
basicConstraints = CA:FALSE
To:
basicConstraints = CA:TRUE,pathlen:0
save file.
@ROTGP
ROTGP / calorie_intake_calculator.dart
Created September 24, 2018 16:51
Dart utils for calculating recommended calorie intake based on the Mifflin St Jeor equation
class ActivityLevel {
static const NONE = const ActivityLevel._(1.0);
static const SEDENTARY = const ActivityLevel._(1.2);
static const LIGHT = const ActivityLevel._(1.375);
static const MODERATE = const ActivityLevel._(1.55);
static const NORMAL = const ActivityLevel._(1.725);
static const VERY = const ActivityLevel._(1.9);
static get values => [NONE, SEDENTARY, LIGHT, MODERATE, NORMAL, VERY];