- Diagnose the problem
- Look for solution
- Look for tools
- Note your solutions by using pseudo code
# .github/actions/build-engine/action.yml | |
name: "" | |
description: "Build the engine with a specific gclient setup and config name" | |
inputs: | |
gclient: | |
description: "gclient name" | |
required: false | |
default: "" | |
config_name: | |
description: "name of a valid et config" |
# SETUP # | |
DOMAIN=example.com | |
PROJECT_REPO="[email protected]:example.com/app.git" | |
AMOUNT_KEEP_RELEASES=5 | |
RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
RELEASES_DIRECTORY=~/$DOMAIN/releases | |
DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
# stop script on error signal (-e) and undefined variables (-u) |
class MyService { | |
final _log = Logger('MyService'); | |
void init() { | |
try { | |
// operation | |
_log("initialized"); | |
} catch(e, stackTrace){ | |
_log.e("init() error", e, stackTrace); | |
} |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
extension TestingHelpers on WidgetTester { | |
/// Helper method for tapping a finder, and for optionally choosing the index | |
/// if the finder finds multiple and if we should scroll to before tapping. | |
Future<void> tapFinder( | |
Finder finder, { |
extension on WidgetTester { | |
Future<void> launchApp() async { | |
await app.main(); | |
await pumpAndSettle(); | |
} | |
Future<void> clearState() async { | |
await SharedPreferences.getInstance().then((it) => it.clear()); | |
} |
{ | |
"terminal.integrated.profiles.windows": { | |
"PowerShell": { | |
"source": "PowerShell", | |
"icon": "terminal-powershell" | |
}, | |
"Command Prompt": { | |
"path": [ | |
"${env:windir}\\Sysnative\\cmd.exe", | |
"${env:windir}\\System32\\cmd.exe" |
# RydMike LINTER Preferences v2.4.0 | |
# | |
# Get this file here: https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c | |
# | |
# We include and activate all lint rules, later below we disable the not used or desired ones. | |
# You can find a list of all lint rules to put in your all_lint_rules.yaml file here: | |
# https://dart.dev/tools/linter-rules/all | |
# | |
# This version is updated for Flutter 3.29 and Dart 3.7. | |
# |
#!/bin/bash | |
echo "App Release Automator by @rodydavis" | |
action="$1" | |
red=`tput setaf 1` | |
green=`tput setaf 2` | |
reset=`tput sgr0` | |
if [ ${action} = "build" ]; then |
class Preference { | |
static SharedPreferences _prefs; | |
static Map<String, dynamic> _memoryPrefs = Map<String, dynamic>(); | |
static Future<SharedPreferences> load() async { | |
if (_prefs == null) { | |
_prefs = await SharedPreferences.getInstance(); | |
} | |
return _prefs; | |
} |