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
# In case multiple folders must be moved, repeat steps per folder | |
git clone <old-repo> old-repo-temp # clone old repo in temp folder | |
python3 git-filter-repo.py --path <target-dir>/ # filter down to one sub-path, e.g. src/<my-project> | |
python3 git-filter-repo.py --path-rename <from-dir>/:<to-dir>/ # move sub-path to new place in new repository folder struture | |
git remote add newrepo <url> # add new repo as remote | |
git checkout -b <branch-name> # branch to working branch | |
git fetch newrepo # fetch all info from new repo remote | |
git merge newrepo/main --allow-unrelated-histories # merge current state of new repo into working branch | |
git push newrepo <branch-name> # push merged state to new repo remote |
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/material.dart'; | |
import 'package:flutter/physics.dart'; | |
const double kMinimumDragDistanceThreshold = 8.0; | |
const double kMinimumDragCollapseDistance = 52.0; | |
abstract class StandardBottomSheetListener { | |
expandUpdated(bool isExpanded); | |
} |
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
exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" $1 |
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
private fixJson(json: string) { | |
/* | |
/(.*?),\s*(\}|])/g | |
1st Capturing Group (.*?) | |
.*? matches any character (except for line terminators) | |
*? Quantifier — Matches between zero and unlimited times, as few times as possible, expanding as needed (lazy) | |
, matches the character , literally (case sensitive) | |
\s* matches any whitespace character (equal to [\r\n\t\f\v ]) | |
* Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy) |