Skip to content

Instantly share code, notes, and snippets.

@WebReflection
WebReflection / dom-libraries.md
Last active February 6, 2024 15:50
A recap of my FE / DOM related libraries

My FE/DOM Libraries

a gist to recap the current status, also available as library picker!

Minimalistic Libraries

do one thing only and do it well

  • µhtml (HTML/SVG auto-keyed and manual keyed render)
  • augmentor (hooks for anything)
  • wickedElements (custom elements without custom elements ... wait, what?)
@the-michael-toy
the-michael-toy / every_git_status.rb
Last active December 15, 2015 15:41
Try to create every possible state reportable by git-staus
# This tries to produce a git repository with a file in every possible state that git-status
# could return. A "remote" and "user" repostories are created with initially identical contents
# and then series of operations are performed to leave the user repository in a state where
# git-status reports one of each possible status.
#
# Note: As of now, I can only reproduce 17 of the 24 possible states.
require 'fileutils'
require 'securerandom'
require 'shellwords'