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
| ## Rules Files | |
| - Always create a rules file that strictly lays out your approach and coding style | |
| - Have a section called something like "Critcal Rules" and a section called "Strong Guidance" | |
| ## Testing | |
| - Prove your use cases e2e | |
| - Tell the agent not to DELETE or SKIP, and to never REMOVE assertions | |
| - Unit tests should be minimal and only to isolate logic |
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'; | |
| ThemeData getLightTheme() => ThemeData( | |
| brightness: Brightness.light, | |
| colorScheme: ColorScheme.fromSeed( | |
| seedColor: Colors.blue, | |
| brightness: Brightness.light, | |
| ), | |
| ); |
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
| // ignore_for_file: unreachable_from_main | |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| extension ForwardPipeOperator<T extends Widget, T2 extends Widget> on T | |
| Function(Widget) { | |
| /// Returns a new function that applies the given transformation to the result | |
| /// of this function | |
| T Function(T2) operator |(Widget Function(Widget) next) => |
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 | |
| contributor_data=$(curl -s -H "Accept: application/vnd.github.v3+json" \ | |
| "https://api.github.com/repos/Nimblesite/nimble_charts/commits?since=$(date -v-3m +%Y-%m-%dT%H:%M:%SZ)&per_page=100" | \ | |
| jq -r '.[] | select(.author != null) | "\(.author.login) \(.author.avatar_url)"' | | |
| sort | uniq -c | sort -rn | | |
| awk '{printf "%s %s %s\n", $2, $3, $1}') | |
| echo "| Avatar | Username | Commits |" | |
| echo "|--------|----------|---------|" |
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'; | |
| import 'package:nadz/nadz.dart'; | |
| typedef LateBuildContextFuture<T, T3> = LateFuture<T, BuildContext, T3>; | |
| class LateFuture<T, T2, E> { | |
| LateFuture( | |
| this.getFuture, | |
| this.onError, { | |
| this.duration = const Duration(milliseconds: 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
| [*.{cs,vb}] | |
| dotnet_diagnostic.CA1062.severity = none | |
| # IDE0022: Use block body for method | |
| csharp_style_expression_bodied_methods = true | |
| # IDE0032: Use auto property | |
| dotnet_style_prefer_auto_properties = true | |
| #CSharpier Incompatible Rules |
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 | |
| # This script finds the files with the most changes in a Git repository, tracking renames and excluding binary files and files with zero changes | |
| # Check for the presence of a Git repository | |
| if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then | |
| echo "This script must be run inside a Git repository." | |
| 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
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
| void main() => runApp(const ProviderScope(child: MyApp())); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @override | |
| Widget build(BuildContext context) => const MaterialApp( |
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'; | |
| import 'package:rxdart/rxdart.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); | |
| @override | |
| Widget build(BuildContext context) => const MaterialApp( |
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) => const MaterialApp( | |
| debugShowCheckedModeBanner: false, |
NewerOlder