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
function my_git_prompt() { | |
tester=$(git rev-parse --git-dir 2> /dev/null) || return | |
INDEX=$(git status --porcelain 2> /dev/null) | |
STATUS="" | |
# is branch ahead? | |
if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then | |
STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_AHEAD" | |
fi |
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
/// Flutter code sample for ListTile.selected | |
// Here is an example of using a [StatefulWidget] to keep track of the | |
// selected index, and using that to set the `selected` property on the | |
// corresponding [ListTile]. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); |
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
{ | |
"title": "Windows Resizing (Fn + arrow)", | |
"rules": [ | |
{ | |
"description": "Window on top - Fn + Arrow up => CTRL+CMD+OPT+9", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
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 'modal_bottom_sheet_autoroute.dart'; | |
export 'package:auto_route/auto_route.dart'; | |
export 'app_router.gr.dart'; | |
@AutoRouterConfig(replaceInRouteName: 'View,Route') | |
class AppRouter extends $AppRouter { | |
@override | |
final List<AutoRoute> routes = [ |