Skip to content

Instantly share code, notes, and snippets.

View C-Sinclair's full-sized avatar
😎

Conor Sinclair C-Sinclair

😎
View GitHub Profile
@ffoodd
ffoodd / improved-sr-only.markdown
Last active July 11, 2025 11:22
Improved .sr-only

Improved .visually-hidden

Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.

A Pen by ffoodd on CodePen.

License.

@rob-brown
rob-brown / ExecuteSigil.ex
Last active April 11, 2023 08:18
An Elixir sigil for executing terminal commands similar to Ruby.
defmodule ExecuteSigil do
@doc """
Handles the sigil %x. Takes the given command line string, unescapes the necessary
characters and replaces interpolations, executes it, and returns the
results as a string.
## Examples
iex> %x"echo Hello \x45\x6c\x69\x78\x69\x72\x21"