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 / 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 / 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 / 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 / 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 / yt_insidewebdev_twitter_clone_code_updates.md
Last active November 17, 2022 09:26
Code updates for insidewebdev youtube course twitter-clone

Using Nuxt 3 RC 13 (latest as of Nov 9, 2022)

update using Nuxt 3 stable release.

So far two major changes are the names of useBody changed to readBody and useCookies changed to parseCookies.

Still having issue with having to refresh page to get content to show or to get the correct tweetId from the url. Will update as soon as I figure it out.

I'll be documenting updated code changes here while going through the course. Once I finish the course I'll upload the complete project

@isimmons
isimmons / Pint.php
Last active October 3, 2022 00:00
pointless artisan command to run vendor/bin/pint but was a good learning experience how to call php scripts from artisan. Borrowed code from artisan serve
<?php
namespace App\Console\Commands;
use Closure;
use Exception;
use Illuminate\Console\Command;
use Symfony\Component\Process\PhpExecutableFinder;
use Symfony\Component\Process\Process;
@isimmons
isimmons / gist:34affa75901d0c6dd86e2143a1a019fc
Created July 22, 2022 15:52
skaffold dev -vdebug output for course project sg microservices with node and react
```
selector:
app: auth-mongo
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
skaffold.dev/run-id: c6b4d167-f7f4-4be2-b880-d0dfe04b6a59
@isimmons
isimmons / OpenWithSublime.bat
Created September 29, 2021 00:32 — forked from jcppkkk/OpenWithSublime.bat
[[[ Move to https://github.com/jcppkkk/OpenWithSublime !!! ]]] Add context menu to allow user open file or folder with Sublime as User (or as Admin).
@echo off
:: Path to Sublime Text installation dir.
SET stPath=%~dp0sublime_text.exe
SET stPathOnly=%~dp0
:: Key name for the registry entries.
SET UserEntry=Sublime Text
SET AdminEntry=Sublime Text As Admin
:: Context menu texts.
SET "UserMenuText=Open with Sublime(&-)"
SET "AdminMenuText=Open with Sublime As Admin(&+)"
@isimmons
isimmons / TableSeeder.php
Last active August 29, 2015 14:04
Laravel TableSeeder
<?php
class DatabaseSeeder extends Seeder {
/**
* Tables to be truncated and seeded
*
* @var array $tables
*/
private $tables = [
@isimmons
isimmons / github.css
Created February 22, 2014 06:14 — forked from tuzz/github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px;
color: #333;
}