Skip to content

Instantly share code, notes, and snippets.

View noxware's full-sized avatar

Franco Profeti noxware

View GitHub Profile
@noxware
noxware / main.dart
Created January 31, 2021 02:30
Dart const experimentation
class WithConstConstructor {
final x;
const WithConstConstructor(this.x);
}
void main() {
// Generates new instance at runtime because there is no "const"
final a1 = WithConstConstructor(0);
final a2 = WithConstConstructor(0);
@noxware
noxware / machine.js
Created October 14, 2022 16:21
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions