Skip to content

Instantly share code, notes, and snippets.

View Reidmen's full-sized avatar
🌴
On vacation

Reidmen Reidmen

🌴
On vacation
View GitHub Profile
@Reidmen
Reidmen / STACKS.md
Created November 16, 2025 22:21 — forked from ksprashu/STACKS.md
Tech Stack Guidelines for Gemini CLI / Agentic AI Coding Assistants

Detailed Technology Stacks, Architectural Patterns, and Professional Standards

Frontend Architecture Decision: Next.js vs. Vite + React

While the default stack for full-stack web applications is Next.js, it's crucial to understand its trade-offs compared to a more focused client-side setup like Vite + React. This guide clarifies when to use each approach.

1. Vite + React: The Client-Side Rendering (CSR) Powerhouse

This combination pairs React, the premier UI library, with Vite, a best-in-class build tool.

@Reidmen
Reidmen / example_unique_pointers.cpp
Created May 30, 2023 19:50
Example of unique pointers
// Example using unique pointers (modern c++)
#include <algorithm>
#include <iostream>
#include <iterator>
#include <memory>
#include <string>
#include <vector>
struct Asset {
virtual ~Asset() = default;
};
@Reidmen
Reidmen / shell_matrix_free_petsc_dolfin.py
Last active May 30, 2023 19:51
Matrix-free with dolfin (legacy) example
"""Example of using Shell Matrix-free object with dolfin methods."""
import numpy as np
from dolfin import Function, FunctionSpace, UnitSquareMesh, as_backend_type
from petsc4py import PETSc
class Shell:
"""Identity operator"""
def __init__(self):