Skip to content

Instantly share code, notes, and snippets.

View pdevito3's full-sized avatar

Paul DeVito pdevito3

View GitHub Profile
@davidfowl
davidfowl / .NET6Migration.md
Last active December 8, 2025 20:34
.NET 6 ASP.NET Core Migration
@mjackson
mjackson / composing-route-in-react-router-v6.md
Last active October 30, 2025 21:05
Notes on route composition in React Router v6, along with a suggested improvement you can make today to start upgrading

Composing <Route> in React Router v6

Composition of <Route> elements in React Router is changing in v6 from how it worked in v4/5 and in Reach Router. React Router v6 is the successor of both React Router v5 and Reach Router.

This document explains our rationale for making the change as well as a pattern you will want to avoid in v6 and a note on how you can start preparing your v5 app for v6 today.

Background

In React Router v5, we had an example of how you could create a element](https://github.com/remix-run/react-router/blob/320be7afe44249d5c025659bc00c3276a19f0af9/packages/react-router-dom/examples/Auth.js#L50-L52) to restrict access to certain routes on the page. This element was a simple [wrapper around an actual element that made a simple decision: is the user authenticated or not? If so, ren

Common "no reply" emails, EXCEPT google docs notifications (which I actually want)
<apps:property name='hasTheWord' value='from:(noreply OR no-reply OR donotreply) -docs.google.com' />
Common app & service notifications
<apps:property name='hasTheWord' value='has joined your Personal Meeting Room' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
<apps:property name='from' value='[email protected]' />
@tanishqsh
tanishqsh / DOBPicker.tsx
Created July 3, 2023 03:54
DOB Calendar
/**
/DOBPicker.tsx
**/
'use client';
import * as React from 'react';
import { format, subYears } from 'date-fns';
import { cn } from '@/lib/utils';
import { Button } from '@/components/ui/button';
@mjbalcueva
mjbalcueva / calendar.tsx
Last active January 6, 2026 04:51
shadcn ui calendar custom year and month dropdown
"use client"
import * as React from "react"
import { buttonVariants } from "@/components/ui/button"
import { ScrollArea } from "@/components/ui/scroll-area"
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
import { cn } from "@/lib/utils"
import { ChevronLeft, ChevronRight } from "lucide-react"
import { DayPicker, DropdownProps } from "react-day-picker"
@davidfowl
davidfowl / ResourceModel.md
Last active October 21, 2025 09:31
Aspire Resource Model: Concepts, Design, and Authoring Guidance