Skip to content

Instantly share code, notes, and snippets.

@davidhund
davidhund / accessible-svg-sprite-icons.md
Last active April 25, 2026 16:44
Figuring out the most robust, accessible markup for SVG Sprite Icons

(as a reply to: https://css-tricks.com/svg-use-with-external-reference-take-2/)

While I love SVG (sprites) there are a lot of issues to take into account.

Advocating The Most Accessible Markup

UPDATE: you should take a look at https://dl.dropboxusercontent.com/u/145744/accessible-svg-icon/test.html which seems a simpler and more robust approach

Another thing: since people copy-paste our code examples it would be great if we could advocate the most robust and accessible markup IMO. I am no a11y expert, but in my understanding we could/should take some extra steps to make out SVG sprite icons more accessible.

Simple Security Guidelines

Using an iDevice? (Best option)

  • Use an iPod or an iPad without a SIM card
  • Use an iPhone
  • Do not jailbreak
  • Always upgrade to new iOS versions
  • Use Brave browser

Need Secure chat?

@1Marc
1Marc / randomdomnodes.js
Created August 12, 2015 13:04
random DOM nodes
var comments = document.querySelectorAll('#comment-list > li');
var commentsList = [];
var array = new Uint32Array(comments.length);
var randomIds = window.crypto.getRandomValues(array);
Array.prototype.forEach.call(comments, function(el, i){
if (el.id) commentsList.push({id: el.id, rand: randomIds[i]});
});
This file has been truncated, but you can view the full file.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\MPC-BE]
@=dword:00000001
[HKEY_CURRENT_USER\Software\MPC-BE\Capture]
"VidDispName"="@device:pnp:\\\\?\\usb#vid_04ca&pid_7025&mi_00#7&1e983a4a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global"
"AudDispName"=""
"Country"=dword:00000001
"VidOutput"=dword:00000001
@luis-pinheiro
luis-pinheiro / essential-gulp-plugins.md
Created May 10, 2015 18:05
essential-gulp-plugins
@maban
maban / Event Notes.md
Last active March 9, 2020 19:28
Event Notes

Event Notes

  • Event Name:
  • Location:
  • Date:
  • Conference format: (number of days, tracks, and speakers)

Talk

@davidfowl
davidfowl / dotnetlayout.md
Last active September 26, 2026 17:57
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@darrenjansson
darrenjansson / sm-annotated.html
Last active June 25, 2020 13:57 — forked from hdragomir/sm-annotated.html
The deferred font loading logic for Smashing Magazine, updated to include IE8 support. http://www.smashingmagazine.com/
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
@nocturnalgeek
nocturnalgeek / MailinatorAliases
Last active April 11, 2026 12:45
A list of alternate domains that point to @mailinator.com
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com
@addyosmani
addyosmani / README.md
Last active May 16, 2026 20:29 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version