Skip to content

Instantly share code, notes, and snippets.

View isimmons's full-sized avatar
😁
Having fun learning to code

Ian isimmons

😁
Having fun learning to code
View GitHub Profile
@isimmons
isimmons / custom.d.ts
Created December 19, 2022 07:00
TS module declarations for css and images
// react specific css modules
declare module '*.module.css' {
const content: Record<string, string>;
export default content;
}
// react specific for direct svg import
declare module '*.svg' {
import React = require('react');
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
@isimmons
isimmons / markdown-import.md
Last active December 28, 2023 14:27
astro md import

This is a level 1 heading

This is level 2

I need to say something so here is a paragraph.

Learn Typescript

// let's see how pre formatted code turns out
@isimmons
isimmons / USstates_avg_latLong
Last active August 11, 2024 05:53 — forked from meiqimichelle/USstates_avg_latLong
JSON of US states (full names) and their average lat/long
[
{
"state":"Alaska",
"latitude":61.3850,
"longitude":-152.2683
},
{
"state":"Alabama",
"latitude":32.7990,
"longitude":-86.8073
@isimmons
isimmons / tw-shake-tailwind.config.js
Last active October 1, 2024 04:57 — forked from krishaantechnology/tailwind.config.js
Tailwind CSS: Shake Animation
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
purge: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./resources/js/**/*.vue',
],
@isimmons
isimmons / Dockerfile
Last active January 11, 2025 01:25
remix-run react-router docker files
# Using npm
FROM node:20-alpine AS development-dependencies-env
COPY . /app
WORKDIR /app
RUN npm ci
FROM node:20-alpine AS production-dependencies-env
COPY ./package.json package-lock.json /app/
WORKDIR /app
RUN npm ci --omit=dev
@isimmons
isimmons / biome.json
Last active June 20, 2025 09:11
biomejs config, v1 and v2, bound to change but is what I'm using ATM
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": true,
"ignore": []
@isimmons
isimmons / README.md
Created July 10, 2025 04:51 — forked from magnetikonline/README.md
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

Assignment
Assign value to variable if variable is not already set, value is returned.

Combine with a : no-op to discard/ignore return value.
${variable="value"}
: ${variable="value"}