Skip to content

Instantly share code, notes, and snippets.

View PixelSushiRobot's full-sized avatar
👋

PixelSushiRobot PixelSushiRobot

👋
View GitHub Profile
@skullzarmy
skullzarmy / ReggieAnimation.tsx
Created June 19, 2025 05:57
Reggie Component
"use client";
import { useEffect, useState } from "react";
import { useAutoAnimate } from "@formkit/auto-animate/react";
import "@/styles/reggie-animation.css";
import { hamsterPhrases, brokenPhrases, pokePhrases } from "./hamsterPhrases";
import { cn } from "@/lib/utils";
interface ReggieAnimationProps {
customPhrases?: string[];
state?: string | "animated" | "paused";
@IanColdwater
IanColdwater / twittermute.txt
Last active August 18, 2025 07:02
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@brantwedel
brantwedel / btt-chrome-cycle-tabs.scpt
Last active October 4, 2018 02:58
TouchBar "Dock" using Better Touch Tool
# cycle through Google Chrome tabs and windows
tell application "System Events"
set activeApp to name of first application process whose frontmost is true
try
set activeChrome to first application process whose name is "Google Chrome"
set appName to name of window 1 of activeChrome
on error errMsg
tell application "Google Chrome" to make new window
tell application "Google Chrome" to activate
@christopheranderton
christopheranderton / montserrat-font-family-styles.css
Last active May 5, 2023 08:18
Montserrat Font Family Styles (Montserrat, Montserrat Alternates, Montserrat Subrayada, Montserrat Arabic). Weights, Font feature settings, Download sources…
/* == Montserrat Font Family Styles == */
/* @group Montserrat
-------------------------------------------------------------- */
/* = Weights Montserrat
-------------------------------------------------------------- */
.thin {
@davidofwatkins
davidofwatkins / google-fonts-sync-git.md
Last active April 8, 2025 09:11
Keep MacOS Fonts Updated with Google Fonts

Google Fonts suggests syncing fonts to your computer with a tool called SkyFonts. However, if you're running MacOS and want to keep your machine updated with all Google Fonts without any extra software, you can do this with Git, thanks to the Google Fonts Repo.

To do this, run the following in your terminal:

cd ~/Library/Fonts/
git clone --depth 1 https://github.com/google/fonts.git google-fonts

Done! In the future, you can download new fonts by running:

cd /Library/Preferences
sudo rm com.sophos.sav.plist

cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove
@paulirish
paulirish / open-chrome-tabs-in-safari.scpt
Created April 4, 2016 00:24
open chrome tabs in safari
tell application "Google Chrome"
set tab_list to every tab in the front window
repeat with the_tab in tab_list
set the_url to the URL of the_tab
tell application "Safari" to open location the_url
end repeat
end tell
@samnabi
samnabi / panel.css
Created February 25, 2016 15:03
Better drag-and-drop file upload UI for Kirby Panel
/* Better drag-and-drop UI for panel files */
.marginalia[href="#upload"] {
padding: 1rem 1rem 1rem 4rem;
position: relative;
display: block;
border: 2px dashed lightgrey;
border-radius: 0.3em;
}
html[lang="en"] .marginalia[href="#upload"]:after {
content: '. Drag & drop here to upload.';
@agam
agam / image_conversion.md
Last active April 2, 2023 10:36
Convert Google Drive url for Images to a URL that can be used as a Direct Link
  1. Upload image to Google Drive
  2. Make the image publicly shareable, and get the sharing URL
  3. The URL might be something like https://drive.google.com/file/d/foo
  4. Rewrite this to something like https://drive.google.com/uc?id=foo
  5. When you enter this link in the browser, you'll get another link, something with docs.googleusercontent.com in the URL
  6. Go ahead and embed this last link ...
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//