Skip to content

Instantly share code, notes, and snippets.

@Muldec
Muldec / future_test.dart
Last active July 20, 2022 10:55
The following assertion was thrown running a test: 'package:flutter_test/src/binding.dart': Failed assertion: line 567 pos 14: '_pendingExceptionDetails != null'
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
class MyWidget extends StatefulWidget {
@override
_MyWidgetState createState() => _MyWidgetState();
}
class _MyWidgetState extends State<MyWidget> {
@Muldec
Muldec / gitignore_comply.sh
Created May 23, 2019 11:32
Untrack files already added to git repository based on .gitignore
git rm -r --cached .
git add .
git commit -m ".gitignore fix"
@Muldec
Muldec / script_anchor_gitlab_ci.yaml
Created April 25, 2019 13:21
This shows how to use gitlab anchors to manage parts of scripts
.foo: &foo |-
echo "Do"
echo "Something"
echo "Multi-line"
.bar: &bar |-
echo "Some"
echo "More"
echo "Actions"
@Muldec
Muldec / code_install_extension.md
Created March 25, 2019 08:39
Install a VS Code extension from repo instead of martkeplace
@Muldec
Muldec / export_env.sh
Created March 22, 2019 13:16
Set environment variables from .env file
set -o allexport
source conf-file
set +o allexport