This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Timeline<State> = { | |
past: State[]; | |
present: State; | |
future: State[]; | |
}; | |
export class Undoable<State> { | |
timeline: Timeline<State>; | |
constructor(initialValue: State) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Slider Test', | |
theme: ThemeData( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A simple yet powerful event system capable of dispatching events with any number of arguments | |
* | |
* @example | |
* const eventSystem = new EventSystem(); | |
* eventSystem.on('my-event', () => console.log('hello event system')); | |
* eventSystem.on('my-event', () => console.log('hello from here too')); | |
* | |
* // In the future | |
* eventSystem.dispatch('my-event'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/GraphTea ./make.sh | |
Buildfile: /home/bruno/GraphTea/build.xml | |
clean: | |
[delete] Deleting directory /home/bruno/GraphTea/binary | |
[delete] Deleting directory /home/bruno/GraphTea/build | |
BUILD SUCCESSFUL | |
Total time: 0 seconds | |
Buildfile: /home/bruno/GraphTea/build.xml |