Skip to content

Instantly share code, notes, and snippets.

@FrancescoLuzzi
FrancescoLuzzi / public.go
Last active December 4, 2024 05:14
Serve precompressed files in fiber golang
package public
import (
"fmt"
"mime"
"path"
"sync"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/static"
@skarllot
skarllot / enum.go
Created June 18, 2015 14:04
Enum-like types for Go (golang) that provides string representation
package main
import "fmt"
var enums []string
type Enum int
func (e Enum) String() string {
return enums[int(e)]
@magicznyleszek
magicznyleszek / css-selectors.md
Last active November 2, 2024 12:22
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❤️

Element selectors

Element -- selects all h2 elements on the page

h2 {