This file contains hidden or 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
| # A collection of useful commands for Flutter projects with Firebase backend | |
| # | |
| # Usage: Copy this file to your project root and update FIREBASE_PROJECT_ID | |
| # ============================================================================ | |
| # CONFIGURATION - Update these for your project | |
| # ============================================================================ | |
| FIREBASE_PROJECT_ID := your-firebase-project-id |
This file contains hidden or 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
| const WORDLIST = ["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse", | |
| "access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act", | |
| "action","actor","actress","actual","adapt","add","addict","address","adjust","admit", | |
| "adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent", | |
| "agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert", | |
| "alien","all","alley","allow","almost","alone","alpha","already","also","alter", | |
| "always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger", | |
| "angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique", | |
| "anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic", | |
| "area","arena","argue","arm","armed","armor","army","around","arrange","arrest", |
This file contains hidden or 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/bash | |
| # Copyright © Sixtus Agbo | |
| # Bash script for file transfer via SFTP | |
| # Usage: ./copy_file.sh <local_file_path> [remote_filename] | |
| # Default values | |
| REMOTE_USER="foo_remote_user" | |
| REMOTE_HOST="foo.server" | |
| REMOTE_PATH="/home/foo/bar" |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Page Expired</title> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Page Expired</title> |
This file contains hidden or 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
| # SETUP # | |
| DOMAIN=example.com | |
| PROJECT_REPO="git@github.com:example.com/app.git" | |
| AMOUNT_KEEP_RELEASES=5 | |
| RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
| RELEASES_DIRECTORY=~/$DOMAIN/releases | |
| DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
| # stop script on error signal (-e) and undefined variables (-u) |
This file contains hidden or 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 code was borrowed from here: https://x.com/mkobuolys/status/1819377685639950585 | |
| const _multiplier = 4.0; | |
| extension type DesignSystemSpace._(double spacing) implements double { | |
| DesignSystemSpace(double token) : spacing = token * _multiplier; | |
| } | |
| final space = DesignSystemSpace(4); // 16 | |
| final padding = EdgeInsets.all(DesignSystemSpace(4)); // EdgeInsets.all(16.0) |
This file contains hidden or 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
| /// Extension on Iterable<Widget> to add a specified widget between each pair of widgets. | |
| extension WidgetIterableExtension on Iterable<Widget> { | |
| List<Widget> addBetween(Widget child) { | |
| final iterator = this.iterator; | |
| final result = <Widget>[]; | |
| if (iterator.moveNext()) result.add(iterator.current); | |
| while (iterator.moveNext()) { | |
| result |
This file contains hidden or 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'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| home: Scaffold( | |
| appBar: AppBar(title: Text('Text Slide Animation')), |
This file contains hidden or 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'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
NewerOlder