This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { format, zonedTimeToUtc } from "date-fns-tz"; | |
| import { Group, Period } from "./types"; | |
| import { prisma } from './db'; | |
| /* | |
| * This was copied from http://npm.im/strip-indent | |
| */ | |
| export const stripIndent = (str: string) => { | |
| const match = str.match(/^[ \t]*(?=\S)/gm) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| # Function to copy content to clipboard | |
| copy_to_clipboard() { | |
| echo "$1" | pbcopy | |
| } | |
| # Function to process files and copy to clipboard | |
| process_files() { | |
| local content="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Some tools I use regularly include: | |
| - TypeScript | |
| - Node.js | |
| - Remix (the web framework) | |
| - postgresql | |
| - prisma | |
| - Tailwind | |
| - React | |
| --- | |
| - Always show code when suggesting changes, preferably first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| a = add | |
| aa = add --all | |
| d = diff | |
| dc = diff --cached | |
| pl = pull | |
| pu = push | |
| puf = push --force | |
| puom = push -u origin master | |
| s = status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type CombineTuples<T extends [[number] | number[]] | ([number] | number[])[]> = | |
| T extends [infer A, ...infer B] | |
| ? A extends number[] | [number] | |
| ? B extends [number[] | [number]] | ([number] | number[])[] | |
| ? [...A, ...CombineTuples<B>] | |
| : never | |
| : never | |
| : [] | |
| type J = CombineTuples<[[1, 2, 3], [4, 5, 6]]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react' | |
| import { DayPicker } from 'react-day-picker' | |
| import { cn } from '#app/utils/misc.js' | |
| import { buttonVariants } from './button' | |
| import { Icon } from './icon' | |
| export type CalendarProps = React.ComponentProps<typeof DayPicker> |
OlderNewer