Skip to content

Instantly share code, notes, and snippets.

View mike-at-redspace's full-sized avatar
🎧

Mike Vardy mike-at-redspace

🎧
View GitHub Profile
@mike-at-redspace
mike-at-redspace / index.html
Created September 26, 2025 10:56
variant picker styles 👨‍🍳
<svg class="sr-only">
<filter id="knockout-black" colorInterpolationFilters="sRGB">
<feColorMatrix
type="matrix"
values="1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
-1 -1 -1 0 1"
/>
<feComposite in="SourceGraphic" operator="out" />

Color Palette Generator

An interactive tool to generate beautiful color palettes from any base color. Pick a color or randomize one, then explore complementary, split, triadic, and other harmony schemes. Copy HEX codes or full CSS variables instantly.

A Pen by Alexandre Vacassin on CodePen.

License.

@mike-at-redspace
mike-at-redspace / der-bunt-color-harmonies-alpha-1-1.markdown
Created August 7, 2025 09:57
Der Bunt: Color Harmonies (Alpha 1.1)

Der Bunt: Color Harmonies (Alpha 1.1)

Todo:

  • Optimise for touch
  • 3d view of color distribution in different color spaces
  • contrast ratio from selected color to all other colors
  • save & export palette
  • alternate palette views

A Pen by mike-at-redspace on CodePen.

@mike-at-redspace
mike-at-redspace / cheatsheet.md
Last active July 17, 2025 08:25
Prompting Cheat Sheet (summer 2025)

Advanced Prompting Cheat Sheet


1. How to Choose a Model

OpenAI Family

@mike-at-redspace
mike-at-redspace / index.html
Created July 15, 2025 10:56
Open Props - oklch colors v2 config
<header>
<section>
<p>Hue</p>
<div class="swatch max"><b><code>var(--color-max)</code></b></div>
</section>
<section>
<div class="title-with-control">
<p>Options</p>
<button id="shuffle" title="You can also press spacebar!">
<svg viewBox="0 0 24 24" width="17" height="24">
// https://news.ycombinator.com/topcolors
const colors = [
{
value: "#ff6600",
name: "Safety Orange",
},
{
value: "#00aadd",
name: "Mystic Blue",
},
@mike-at-redspace
mike-at-redspace / slug-generator.js
Created June 6, 2025 07:50
Reusable Slug Generator with Stop Word & Format Options
/**
* A simple, customizable slug generator for browser-based inputs.
*
* Features:
* - Optionally lowercases text
* - Removes special characters
* - Filters out stop words
* - Removes numeric digits
* - Supports dash or underscore delimiters
* - Copy-to-clipboard functionality
import React from "react"
import { Swiper, SwiperSlide } from "swiper/react"
import useSWR from "swr"
const fetcher = (url) =>
fetch(url, {
headers: {
Authorization: `Bearer YOUR_JWT_TOKEN`
}
}).then((res) => res.json())