- start up antigravity, and go to the editor screen (usually the first one open, or press "open editor")
- click on the three dots in the upper right (just below your profile picture)
- select "customization"
- select "workflows"
- select "+global"
- enter
Adventure Masterfor the title - put the "description" in the description box
- paste the rest in the Content box (be sure to remove the description block)
This file contains hidden or 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
| class Digits extends StatelessWidget { | |
| const Digits({super.key, this.prefix = ''}); | |
| final String prefix; | |
| @override | |
| Widget build(BuildContext context) => Animate( | |
| onPlay: (controller) => controller.repeat(), | |
| ).custom( | |
| builder: (_, double value, __) { | |
| return Text( |
This file contains hidden or 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
| extension DateTimeSmartCopyWith on DateTime { | |
| /// Update the DateTime with the given fields, | |
| /// using mutate mappers for selected fields. | |
| /// | |
| /// If a field is not mentioned, and it is smaller than | |
| /// any field mentioned, a field-specific default value is used. | |
| /// | |
| /// If a field is not mentioned, but is not smaller than | |
| /// any field mentioned, it is passed though from the original, | |
| /// subject to any over-/under-flows from smaller fields as with |
This file contains hidden or 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
| #!/bin/zsh | |
| for i in */.git; do ( | |
| echo "====== $i:h ======" | |
| cd $i:h && | |
| git pull | |
| ); done | |
| for i in */.git; do | |
| ( | |
| cd $i:h && |
This file contains hidden or 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
| // ignore_for_file: avoid_print | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_hooks/flutter_hooks.dart'; // flutter pub add flutter_hooks | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
Great when you just want a quick place to play with flutter or dart.
Presumes Visual Studio Code is available from the code command.
Creates a new project in /tmp.
By default, the project name is a uuid (made into a suitable project name), preceded by either d_ for dart, or f_ for flutter.
If you specify a name, that takes precedence.