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
Show hidden characters
"AI Tool Template": { | |
"prefix": "aiTool", | |
"body": [ | |
"import { ToolResult } from './AITools';", | |
"import { tool } from 'ai';", | |
"import { z } from 'zod';", | |
"", | |
"export interface ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}Params {", | |
" input: string;", | |
"}", |
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:intl/intl.dart'; | |
// https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html | |
extension DateTimeFormattingExtensions on DateTime { | |
// Existing methods | |
String get day => DateFormat('d').format(this); // e.g., "6" | |
String get abbrWeekday => DateFormat('E').format(this); // e.g., "Thu" | |
String get weekday => DateFormat('EEEE').format(this); // e.g., "Thursday" | |
String get abbrStandaloneMonth => DateFormat('LLL').format(this); // e.g., "Jun" | |
String get standaloneMonth => DateFormat('LLLL').format(this); // e.g., "June" |
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
# android/fastlane/Fastfile | |
update_fastlane | |
default_platform(:android) | |
platform :android do | |
lane :bump_version_code do | |
versionCode = File.read("metadata/versionCode").to_i | |
versionCode = versionCode + 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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Build Runner", | |
"type": "shell", | |
"command": "flutter pub run build_runner build --delete-conflicting-outputs", | |
"group": { | |
"kind": "build", | |
"isDefault": true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
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/cupertino.dart'; | |
import 'package:intl/intl.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} |
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'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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:json_annotation/json_annotation.dart'; | |
part 'gpt_usage.g.dart'; | |
@JsonSerializable(explicitToJson: true) | |
class GptUsage { | |
@JsonKey(name: 'prompt_tokens') | |
int promptTokens; |
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:json_annotation/json_annotation.dart'; | |
part 'gpt_choice_message.g.dart'; | |
@JsonSerializable(explicitToJson: true) | |
class GptChoiceMessage{ | |
String role; | |
String content; |
NewerOlder