Skip to content

Instantly share code, notes, and snippets.

@branflake2267
branflake2267 / stful-page.liveTemplate
Last active March 24, 2019 13:31
Flutter - Basic Routing to Pages YouTube source code - This is the IntelliJ IDEA live template for a stateful widget for a page.
class $NAME$ extends StatefulWidget {
$NAME$({Key key, this.title}) : super(key: key);
static const String routeName = "/$NAME$";
final String title;
@override
_$NAME$State createState() => new _$NAME$State();
}
@fcalderan
fcalderan / perftest.sh
Last active March 8, 2017 14:37
A small bash utility for testing slower connection. Use chmod +x perftest.sh to make the script executable. Thanks to Matteo Rosati for sharing basic commands
#!/bin/sh
CMD="$1"
RATE="$2"
DELAY="$3"
if [ "$RATE" = "" ] ; then
RATE=500
fi
if [ "$DELAY" = "" ] ; then