Skip to content

Instantly share code, notes, and snippets.

@Abushawish
Abushawish / singlechildscrollview.dart
Created May 27, 2022 16:18
SingleChildScrollView with List.generate in Flutter
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: List.generate(namesStringList.length, (index) {
return Text(namesStringList[index]);
}),
),
);
@Abushawish
Abushawish / quickgit.fish
Last active August 12, 2021 20:19
Git add, commit, and push in one function for Fish Shell
# How to git add, commit, and push using one function in friendly interactive shell (Fish Shell).
# Save this file within '~/.config/fish/functions' as 'quickgit.fish'. Create the directory if it does not exist.
# '--git-dir=$PWD/.git' Ensures that we run the git commands against the git project where we called the function
function quickgit # This is the function name and command we call
git --git-dir=$PWD/.git add . # Stage all unstaged files
git --git-dir=$PWD/.git commit -a -m $argv # Commit files with the given argument as the commit message
git --git-dir=$PWD/.git push # Push to remote
end