Skip to content

Instantly share code, notes, and snippets.

View mugilan-viewzen's full-sized avatar
🎯
Focusing

Mugilan E.S. mugilan-viewzen

🎯
Focusing
  • ViewzenLabs
  • Chennai
  • 13:39 (UTC +05:30)
View GitHub Profile

Flutter Project Rules (.mdc)

0) Scope

These rules govern architecture, code style, and file layout for this Flutter repo. They are enforceable guidelines for PR review and AI-assisted edits in Cursor.


1) Architecture & Folder Structure (Feature-first, Clean-ish)

Goal: Separate concerns by feature, keep UI and data apart, and share only stable cross-cutting utilities.

@t3dotgg
t3dotgg / try-catch.ts
Last active December 31, 2025 03:02
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@gaetschwartz
gaetschwartz / settings.json
Last active November 8, 2025 01:34
Nest files in Flutter projects on VSCode, inspired from https://github.com/antfu/vscode-file-nesting-config
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml",
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*",
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md",
"*.dart": "$(capture).g.dart, $(capture).freezed.dart",
},
$ sudo apt-get update
$ sudo apt-get install unzip wget
$ wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
$ unzip ngrok-stable-linux-amd64.zip
$ sudo mv ./ngrok /usr/bin/ngrok
$ ngrok
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active January 1, 2026 06:00
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@DmitriyBaklikov
DmitriyBaklikov / labels_guide_github.md
Last active September 8, 2023 09:04
Github Labels Guide

Github Labels Guide

1 Guide Assumptions

This guide is created to make work with labels on Github more constructive and understandable both to development and management parts of the team.