Skip to content

Instantly share code, notes, and snippets.

View rseward's full-sized avatar

Robert Seward rseward

View GitHub Profile
@rseward
rseward / react-coding-guideline.md
Created October 6, 2024 09:51
React Coding Guidelines Experiment

Architectural Guidelines for Scalable React Web Applications

Best Practices and Rules

1. Functional Components

  • Prefer functional components over class components for their simplicity and performance benefits. Use hooks like useState, useEffect, and useContext to manage state and side effects within functional components.

2. Data Fetching

@rseward
rseward / shell.nix
Last active September 3, 2024 03:25
Python 3.10 ML nix-shell
# export NIXPKGS_ALLOW_UNFREE=1
{ pkgs ? import <nixpkgs> { } }:
(pkgs.buildFHSUserEnv {
name = "pipzone";
targetPkgs = pkgs: (with pkgs; [
stdenv
portaudio
pkg-config
binutils