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
| export const finishJson5 = (unfinishedJson5: string) => { | |
| let stack = []; | |
| let inDoubleQuotes = false; | |
| let inSingleQuotes = false; | |
| let inSingleLineComment = false; | |
| for (let i = 0; i < unfinishedJson5.length; i++) { | |
| const currentChar = unfinishedJson5[i]; | |
| const nextChar = unfinishedJson5[i + 1]; | |
| let prevChar; |
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
| /** | |
| * Use this [ActivityResultContract] to seamlessly switch between | |
| * the new [MediaStore.ACTION_PICK_IMAGES] and [Intent.ACTION_GET_CONTENT] | |
| * based on the availability of the Photo Picker. | |
| * | |
| * Use [PickMultipleImages] if you'd like the user to be able to select multiple | |
| * photos/videos. | |
| * | |
| * Input: the mimeType you'd like to receive. This should generally be | |
| * either `image/\*` or `video/\*` for requesting only images or only videos |
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() async { | |
| runApp(const DynamicHeader()); | |
| } | |
| class DynamicHeader extends StatelessWidget { | |
| const DynamicHeader({Key? key}) : super(key: key); | |
| @override |
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
| <? | |
| # MIT license, do whatever you want with it | |
| # | |
| # This is my invoice.php page which I use to make invoices that customers want, | |
| # with their address on it and which are easily printable. I love Stripe but | |
| # their invoices and receipts were too wild for my customers on Remote OK | |
| # | |
| require_once(__DIR__.'/../vendor/autoload.php'); |
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
| { | |
| "Simulator Target Bundle": "com.your.targets.bundle.identifier", | |
| "aps": { | |
| "alert": "Push Notifications Test", | |
| "sound": "default", | |
| "badge": 1 | |
| } | |
| } |
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
| apply plugin: 'shot' | |
| /* | |
| Put this on any module you want to test with snapshots: | |
| apply from: "../screenshots.gradle" | |
| Put this on your root build.gradle | |
| buildscript { | |
| repositories { | |
| google() | |
| jcenter() |
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/sh | |
| # | |
| IFS='|' | |
| base=${1%%.*} | |
| ext=${1#*.} | |
| #if [[ $# -eq 0 ]] ; then | |
| if [ "$ext" != "epub" ]; then | |
| echo "Usage: $0 [EPUB FILE]" |
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
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
NewerOlder