Skip to content

Instantly share code, notes, and snippets.

View philsinatra's full-sized avatar
🤘

Phil Sinatra philsinatra

🤘
View GitHub Profile
@philsinatra
philsinatra / .a-lint_formatting_config
Last active June 24, 2025 18:43
Linting and Formatting Configuration
Linting and Formatting Configuration Files
@philsinatra
philsinatra / Ghostty-config
Last active June 24, 2025 18:44
Ghostty Config
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /Users/philipsinatra/Library/Application Support/com.mitchellh.ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
@philsinatra
philsinatra / tsconfig.json
Created May 12, 2025 17:52
Matt Polluck's tsconfig
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
@philsinatra
philsinatra / make_folders.js
Created April 3, 2023 21:41
Organize images into subfolders
const fs = require('fs');
const path = require('path');
const MAX_FILES_PER_FOLDER = 500;
const IMAGE_EXTENSIONS = ['.png', '.jpg', '.jpeg', '.gif'];
// Get a list of all files in the current directory
const files = fs.readdirSync('.');
// Filter out only the image files
@philsinatra
philsinatra / vscode.json
Created October 28, 2022 13:15
VSCode preferences
{
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
@philsinatra
philsinatra / shadow.css
Created March 14, 2022 14:20
Layered CSS Box Shadow
.box {
box-shadow:
0 2.8px 2.2px rgba(0, 0, 0, 0.034),
0 6.7px 5.3px rgba(0, 0, 0, 0.048),
0 12.5px 10px rgba(0, 0, 0, 0.06),
0 22.3px 17.9px rgba(0, 0, 0, 0.072),
0 41.8px 33.4px rgba(0, 0, 0, 0.086),
0 100px 80px rgba(0, 0, 0, 0.12);
}
@philsinatra
philsinatra / css-starter.css
Last active June 17, 2025 17:42
CSS Starter
:root {
/* #region Color Variables */
--color-slate-50: #f8fafc;
--color-slate-100: #f1f5f9;
--color-slate-200: #e2e8f0;
--color-slate-300: #cbd5e1;
--color-slate-400: #94a3b8;
--color-slate-500: #64748b;
--color-slate-600: #475569;
--color-slate-700: #334155;
@philsinatra
philsinatra / tic-tac-toe.py
Created July 9, 2019 15:24
Python Tic Tac Toe Game
#!/usr/local/bin/python3
import random
import time
test_board = ['#', 'X', '0', 'X', '0', 'X', '0', 'X', '0', 'X']
game_board = ['#', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']
def display_board(board):
@philsinatra
philsinatra / vscodepreferences.txt
Last active April 6, 2022 10:05
Bracket Pair Colorizer Recommendations
// Monokai Pro
"bracket-pair-colorizer-2.colors": [
"#e15980",
"#7bd88f",
"#e3cf5e",
"#7a73b8"
],
"indentRainbow.colors": [
"rgba(225, 89, 128, 0.075)",
@philsinatra
philsinatra / .gitignore
Created November 10, 2017 18:12
Git Ignore Configuration File
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.sass-cache