Skip to content

Instantly share code, notes, and snippets.

View emri99's full-sized avatar
💭
Coding, what else ?

emri99

💭
Coding, what else ?
View GitHub Profile
@emri99
emri99 / app_router.dart
Last active March 1, 2025 16:47
Draggable flutter bottom sheet & Autoroute (flutter 3.16, auto_route 7.8.4)
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 = [
@emri99
emri99 / karabiner-rectangle-mapper.json
Last active April 26, 2022 00:20
Karabiner / Rectangle mapper
{
"title": "Windows Resizing (Fn + arrow)",
"rules": [
{
"description": "Window on top - Fn + Arrow up => CTRL+CMD+OPT+9",
"manipulators": [
{
"type": "basic",
"from": {
"modifiers": {
@emri99
emri99 / main.dart
Created December 16, 2020 00:06
Multiple selection List Flutter
/// 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());
@emri99
emri99 / mortalscumbag-time.zsh-theme
Created March 22, 2018 10:31
ZSH mortal scumbag theme with time
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