Skip to content

Instantly share code, notes, and snippets.

View sethladd's full-sized avatar

Seth Ladd sethladd

View GitHub Profile
#!/bin/bash
# Default start and end dates
DEFAULT_START_DATE="2025-01-01"
DEFAULT_END_DATE="2025-05-21"
# Initialize variables with default values
START_DATE="$DEFAULT_START_DATE"
END_DATE="$DEFAULT_END_DATE"
DISPLAY_EMAILS=false
// Vibe coded in DartPad w/ Gemini on May 15 2025
// I wanted to create this effect as I've always liked it.
// Enjoy!
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() {
runApp(const MyApp());
}
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@sethladd
sethladd / not_serious.dart
Created April 27, 2025 21:10
performance art
import 'package:flutter/material.dart'; // Or wherever ActionStateType comes from
// --- State Pattern Implementation ---
// 0. Define the result type (e.g., an enum) if needed for UI logic
enum ActionStateType { ready, answering, complete }
// 1. Define the State Interface (or abstract class)
abstract class GameState {
// Method for the state to determine what the *current* state should be
#!/bin/bash
# Script to automate Flutter SDK installation and setup for iOS development on macOS.
# Corrected URL finding logic for Intel vs Arm. V1.5
# --- Configuration ---
FLUTTER_INSTALL_PARENT_DIR="${HOME}/development" # Default parent directory for Flutter SDK FOLDER
FLUTTER_DOCS_URL="https://docs.flutter.dev/get-started/install/macos/mobile-ios"
SCRIPT_VERSION="1.5" # Updated Version
REPORT_FILE="/tmp/flutter_setup_report_$(date +%s).txt"
@sethladd
sethladd / another case.dart
Last active February 3, 2025 05:44
Wild ideas
//Before:
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Stepper'),
),
body: Stepper(
steps: widget.steps,
currentStep: widget.currentStep,
Center()
<| DecoratedBox(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20),
boxShadow: [
BoxShadow(
color: Colors.grey.withValues(alpha: 0.5),
offset: Offset(3, 3)
)
@sethladd
sethladd / export_mtgen.js
Created April 17, 2022 16:24
Export MTG proxies from mtgen.net
console.log([...document.querySelectorAll('.active .card')].map(card => card.title.replace(" - Foil", "")).map(title => `1 ${title} (NEO)`).join("\n"))
@sethladd
sethladd / flutter_localized_title.dart
Last active July 29, 2021 08:05
Flutter example of a localized title
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Note: I'm not the original author, I'm sharing via Gist to make
// it easy for folks to check it out. Please email
// [email protected] if you have questions about that.
// A simple "rough and ready" example of localizing a Flutter app.
// Spanish and English (locale language codes 'en' and 'es') are
return new SingleChildScrollView(
child: new Container(
margin: const EdgeInsets.all(16.0),
child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new Expanded(child: new LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints){