Skip to content

Instantly share code, notes, and snippets.

/////////////////////////////////////////
// Terminal *Voice Lock Terminal*
//{//////////////////////////////////////
//-------------------------------------------------------
bool mbHasCorrectVoice = false;
bool mbInteracted = false;
bool mbIsPlaying = false;
float mfResponseTimer = 0.0f;
/////////////////////////////////////////
// Terminal *Voice Lock Terminal*
//{//////////////////////////////////////
//-------------------------------------------------------
bool mbHasCorrectVoice = false;
bool mbInteracted = false;
bool mbIsPlaying = false;
float mfResponseTimer = 0.0f;
#include "interfaces/Map_Interface.hps"
#include "base/Inputhandler_Types.hps"
#include "helpers/helper_map.hps"
#include "helpers/helper_props.hps"
#include "helpers/helper_effects.hps"
#include "helpers/helper_audio.hps"
#include "helpers/helper_imgui.hps"
#include "helpers/helper_sequences.hps"
#include "helpers/helper_game.hps"
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
class ReactiveWidget extends StatefulWidget {
@override
State<StatefulWidget> createState() => ReactiveWidgetState();
}
class ReactiveWidgetState extends State<ReactiveWidget> {
@override
import 'package:flutter/material.dart';
import 'package:bloc_lite/bloc_lite.dart';
import 'package:bloc_lite_flutter/bloc_lite_flutter.dart';
class ReactiveWidget extends StatefulWidget {
@override
State<StatefulWidget> createState() => ReactiveWidgetState();
}
class ReactiveWidgetState extends State<ReactiveWidget> {
### Keybase proof
I hereby claim:
* I am Abion47 on github.
* I am andrewackerman (https://keybase.io/andrewackerman) on keybase.
* I have a public key whose fingerprint is 1C8C 71EB 5321 1018 DCF2 5931 3C11 3BEF C49F EC9B
To claim this, I am signing this object:
@Abion47
Abion47 / loop_and_filter_comparison.dart
Created December 14, 2019 01:33
Loop and filter comparison
import 'dart:math';
// Generate a list of numbers with a configurable length
// The numbers range from 1 to 1 million
// The goal is to then generate a list of all numbers in that list
// which are less than 5 hundred thousand
// This script compares three approaches:
// typical for loop, iterator-based for loop, and generator-based where method
void main (){
class Transaction {
final int amount;
final DateTime date;
final String title;
final String accountType;
final String notes;
final String id;
final String repeat;
Transaction({
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@Abion47
Abion47 / flutter_key_example.dart
Created May 11, 2021 20:03
Why StatefulWidgets need keys
import 'package:flutter/material.dart';
import 'dart:math';
void main() => runApp(MyApp());
Color randomColor() {
Random r = Random();
return Color(0xFF000000 + r.nextInt(0x00FFFFFF));
}