Skip to content

Instantly share code, notes, and snippets.

View AndrewDongminYoo's full-sized avatar
🐈
My cat is interfering

Dongmin Yu AndrewDongminYoo

🐈
My cat is interfering
View GitHub Profile
@AndrewDongminYoo
AndrewDongminYoo / all_lint_rules.yaml
Last active October 29, 2026 00:56
Flutter Challenges: content list filtering example
# The following is an auto-generated list of all linter rules available in the Dart SDK as of version 3.8.1.
# Add them to your analysis_options.yaml file and adjust as you see fit.
# See: https://dart.dev/tools/linter-rules/all
linter:
rules:
- always_declare_return_types
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- always_specify_types
- always_use_package_imports
@AndrewDongminYoo
AndrewDongminYoo / remove-coauthors.sh
Created April 4, 2026 04:17
Rewrite Git history with git-filter-repo to remove Co-authored-by footer lines from commit messages, with a dry-run preview mode and post-rewrite remote recovery instructions.
#!/usr/bin/env bash
set -euo pipefail
# Usage:
# ./scripts/remove-coauthors.sh
# ./scripts/remove-coauthors.sh --dry-run
#
# Requirements:
# git-filter-repo must be installed.
# Example:
@AndrewDongminYoo
AndrewDongminYoo / .markdownlint.yaml
Last active April 30, 2026 07:31
A set of Markdown lint rules that disables all rules that conflict with Prettier
# Disables rules that may conflict with Prettier
# heading-increment - Heading levels should only increment by one level at a time
#MD001: false
# heading-style - Heading style
MD003: false
# ul-style - Unordered list style
#MD004: false
# list-indent - Inconsistent indentation for list items at the same level
MD005: false
@AndrewDongminYoo
AndrewDongminYoo / colors.gen.dart
Last active January 15, 2026 09:19
Debug helpers for theme inspection.
// 🐦 Flutter imports:
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
// 🌎 Project imports:
import 'package:mirae/gen/colors.gen.dart';
extension ColorSchemeDebugExtension on ColorScheme {
/// Human-friendly dump of the ColorScheme.
///
@AndrewDongminYoo
AndrewDongminYoo / lifetime-in-weeks.tsx
Created December 17, 2025 04:46
A simple visualization to reflect on the passage of time (remix with claude code)
import { useState } from 'react';
type AppLocale = 'en-US' | 'es-ES' | 'ko-KR';
type Translations = {
[K in AppLocale]: {
[key: string]: string;
};
};
const TRANSLATIONS: Translations = {
@AndrewDongminYoo
AndrewDongminYoo / frame_timing_logger.dart
Created November 30, 2025 02:19
A minimal frame timing logger that records slow frames to the console/Logcat.
// 🎯 Dart imports:
import 'dart:io';
import 'dart:ui';
// 🐦 Flutter imports:
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
// 📦 Package imports:
import 'package:logger/logger.dart';
@AndrewDongminYoo
AndrewDongminYoo / update-dart-globals.sh
Created November 29, 2025 09:20
Setting up a cron job or adding an alias to your shell profile for a shell script that mimics the exact experience of running `brew upgrade` in Homebrew to upgrade all Dart global packages is super convenient!
#!/usr/bin/env bash
# ANSI codes
BOLD="\033[1m"
GREEN="\033[32m"
YELLOW="\033[33m"
RED="\033[31m"
BLUE="\033[34m"
GRAY="\033[90m"
RESET="\033[0m"
@AndrewDongminYoo
AndrewDongminYoo / color_converter.dart
Last active November 22, 2025 00:27
A JsonConverter between Flutter Color (ARGB) and web/Figma-style hex strings using 'RRGGBBAA' (RGBA) format, optionally prefixed with '#'.
// 🐦 Flutter imports:
import 'package:flutter/material.dart';
// 📦 Package imports:
import 'package:json_annotation/json_annotation.dart';
/// A [JsonConverter] between Flutter [Color] (ARGB)
/// and web/Figma-style hex strings using `RRGGBBAA` (RGBA) format,
/// optionally prefixed with `#`.
///
@AndrewDongminYoo
AndrewDongminYoo / slide_down_snack_bar.dart
Created November 12, 2025 03:10
A custom snackbar widget that slides down from beneath the app bar area.
// 🎯 Dart imports:
import 'dart:async';
import 'dart:math' as math;
// 🐦 Flutter imports:
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
/// Extension on [BuildContext] that provides convenient methods for displaying
@AndrewDongminYoo
AndrewDongminYoo / sass_compiler.dart
Created September 9, 2025 10:16
Recursively compiles all '*.module.scss' files under directory into sibling '*.module.css' files.
import 'dart:io';
import 'package:path/path.dart' as p;
import 'package:sass/sass.dart' as sass;
/// Recursively compiles all `*.module.scss` files under directory into sibling `*.module.css` files.
void main(List<String> arguments) {
final src = arguments[0];
final srcDir = Directory('$src');
if (!srcDir.existsSync()) {