Skip to content

Instantly share code, notes, and snippets.

@raylee
raylee / icbm.service
Last active March 18, 2021 19:08
Example installation of golang service under Debian systemd
# /etc/systemd/system/icbm.service
[Unit]
Description=Internet Connected Beverage Monitor data server
Documentation=https://lunarville.org
Wants=network.target
After=network.target
[Service]
Type=simple
@Merott
Merott / tailwind-colors-as-css-variables.md
Last active March 6, 2025 04:33
Expose Tailwind colors as CSS custom properties (variables)

This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root element.

There are a couple of main reasons this is helpful:

  • You can reference all of Tailwind's colors—including any custom ones you define—from handwritten CSS code.
  • You can define all of your colors within the Tailwind configuration, and access the final values programmatically, which isn't possible if you did it the other way around: referencing custom CSS variables (defined in CSS code) from your Tailwind config.

See the Tailwind Plugins for more info on plugins.

@max10rogerio
max10rogerio / slugify.ts
Last active September 29, 2024 22:27
Typescript slug function
// MIT License
// Copyright (c) 2023 Max Rogério
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@CryogenicPlanet
CryogenicPlanet / .eslintrc
Created June 6, 2021 12:29
Typescript Mono Repo Guide
// .eslintrc
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"react-app",
"plugin:react/recommended",