Skip to content

Instantly share code, notes, and snippets.

// Really quick way to dump <img> tags and alt text into the console
// Useful for checking a11y
let imgs = document.getElementsByTagName('img');
for(var i = 0; i < imgs.length; i++) {
console.log('--------------------------------\n', imgs[i], '\nAlt text: '+imgs[i].getAttribute('alt')+'\n');
}
@cscuderi
cscuderi / Slack Themes.css
Last active September 6, 2018 13:04
Themes for Slack
/* Purple */
#4b6bc6,#2f3e4e,#F0f0f0,#0081f8,#2F3E4E,#ffffff,#39da51,#ff6058
/* DevLdn (Green) */
#a0b530,#F8F8FA,#64711b,#FFFFFF,#FFFFFF,#000000,#334d2f,#FF8669
/* DevLdn alt */
#334d2f,#2c4a2d,#388038,#FFFFFF,#4a634b,#FFFFFF,#94E864,#78AF8F
/* A11y (yellow) */
@cscuderi
cscuderi / ata.json
Last active January 28, 2020 16:18
Visual Studio Code Settings Sync Gist
{
"api": {
"CredentialUserData": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/CredentialUserData",
"support": {
"chrome": {
"version_added": "60"
},
"chrome_android": {
@cscuderi
cscuderi / dialog.xml
Last active August 19, 2020 16:43
AEM dialog XML attributes and elements
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root
xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
xmlns:cq="http://www.day.com/jcr/cq/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog"
// Title of the dialog