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
abstract class Utils { | |
/** | |
* The compose method composes a function operation with the provided value. | |
* <br/> | |
* It applies the operation to the value if the value is not null and returns the result. | |
*/ | |
public static <V, R> R compose(V value, Function<V, R> operation) { | |
if (Objects.isNull(value) || Objects.isNull(operation)) { |
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 | |
# Exit on error | |
set -e | |
# Ensure PR number is provided | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <PR_NUMBER>" | |
exit 1 | |
fi |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.tabbyml.scheduler</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/homebrew/bin/tabby</string> | |
<string>scheduler</string> |
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:dio/dio.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'dio_error_util.dart'; | |
typedef ResponseDecoderCallBack<DecoderType> = DecoderType Function(dynamic); | |
class DioClient { | |
final Dio dio; | |
DioClient(this.dio); |