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/widgets.dart'; | |
| import 'dart:async'; | |
| /// Builder for a widget with no build context (used by [LazyWidget]). | |
| typedef LazyWidgetBuilder = Widget Function(); | |
| /// A widget that shows [initialWidget] until [delay] has passed, then | |
| /// switches to [delayedWidget]. | |
| /// | |
| /// If [delay] is [Duration.zero], [delayedWidget] is shown immediately |
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
| # Requirements: | |
| # git tag --contains <commit-sha> is not enough because it won't check file by file ensuring the history of a given file | |
| # this script evaluates tag by tag and check the history of the file, ensure a given commit SHA is on top of the history | |
| # (hence it is "shipped" when released under a certain tag). | |
| # | |
| # - gh (brew install gh) | |
| # - jq version 1.6 | |
| # run inside your repo folder | |
| # ensure you have the most recent version of your repo and its tags: # git fetch --tags |
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
| (s/defn ^:private coll->indexed-map | |
| "This function creates a hashmap structure based on a collection where | |
| the key is an integer associated with given collection index. | |
| Example: | |
| (coll->indexed-map [\"a\", \"b\", \"c\"]) | |
| ;=> | |
| { | |
| 0 \"a\" | |
| 1 \"b\" | |
| 2 \"c\" |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: curlapp | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: curlapp | |
| template: | |
| metadata: |
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
| document.cookie.replace(/(?<=\=)(.*?)(?=(\;|$))/g,'').replace(/\=;/g,'\n'); |