- tig
- tig status Status
- tig blame FILE Blame
- tig master Show a branch
- tig test..master Show difference between two branches
- tig FILE Show history of file
- tig v0.0.3:README Show contents of file in a specific revision
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 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(FlagCircle()); | |
} | |
class FlagCircle extends StatefulWidget { | |
@override |
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/widgets.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
class ContainerByColorFinder extends MatchFinder { | |
ContainerByColorFinder(this.color, {bool skipOffstage = true}) | |
: super(skipOffstage: skipOffstage); | |
final Color color; | |
@override |
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
#!/bin/sh | |
# To use add to `.git/hooks/` | |
# Should be named `pre-push` | |
# Make executable with `chmod +x` | |
# ref: https://gist.github.com/maks/edb25da8706cb04f45ebfdd278d91791 | |
# run Flutter analyze + test | |
flutter analyze | |
if [ $? -ne 0 ]; then | |
echo 'cannot push: Flutter analyze failed' |
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
|
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
enum DROID { R2D2, C3PO } | |
Expando<bool> _hasDSPlans = Expando<bool>(); | |
extension REBELS on DROID { | |
bool get hasDSPlans => _hasDSPlans[this]; | |
set givePlans(v) => _hasDSPlans[this] = v; | |
} |
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:connectivity/connectivity.dart'; | |
import 'package:flutter/material.dart'; | |
class ConnectivityCheck extends StatelessWidget { | |
final Widget child; | |
ConnectivityCheck({@required this.child}); | |
@override | |
Widget build(BuildContext context) { |
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
#!/bin/sh | |
# args: start-time length video-file | |
# ref: https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/ | |
ffmpeg -ss $1 -t $2 -i $3 -filter_complex "[0:v] palettegen" /tmp/palette.png | |
ffmpeg -ss $1 -t $2 -i $3 -i /tmp/palette.png -filter_complex "[0:v][1:v] paletteuse" $3.gif |
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
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
android:supportsRtl="true" | |
android:theme="@style/AppTheme" | |
android:networkSecurityConfig="@xml/network_security_config"> |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+alt+left", | |
"command": "workbench.action.navigateBack" | |
}, | |
{ | |
"key": "ctrl+alt+-", | |
"command": "-workbench.action.navigateBack" | |
}, |