Skip to content

Instantly share code, notes, and snippets.

Carlin Scuderi cscuderi

Block or report user

Report or block cscuderi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AEM Touch UI checkbox
<myCheckbox
sling:resourceType="granite/ui/components/foundation/form/checkbox"
jcr:primaryType="nt:unstructured"
text="My label"
fieldDescription="This will appear as helpful text on the info icon."
name="./myCheckbox"
value="{Boolean}true"
uncheckedValue="{Boolean}false"
defaultChecked="{Boolean}true"
/>
@cscuderi
cscuderi / component.txt
Created Jan 26, 2018 — forked from dazld/component.txt
AEM Sightly JS globals, currentPage investigations
View component.txt
accessible
adaptTo
analyzable
cellName
childEditConfig
class
componentGroup
container
declaredChildEditConfig
declaredEditConfig
@cscuderi
cscuderi / dialog.xml
Last active Jan 16, 2018
AEM dialog XML attributes and elements
View dialog.xml
<?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
@cscuderi
cscuderi / cloudSettings
Last active Jan 24, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-01-24T20:12:00.927Z","extensionVersion":"v3.2.4"}
@cscuderi
cscuderi / Slack Themes.css
Last active Sep 6, 2018
Themes for Slack
View Slack Themes.css
/* 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 / download.js
Created Aug 6, 2016
Download a file using JavaScript
View download.js
// Download a PDF
var fileName = 'My file';
var fileURL = 'http://localhost/my-file.pdf';
// Non-IE
if (!window.ActiveXObject) {
var save = document.createElement('a');
save.href = fileURL;
save.target = '_blank';
save.download = fileName || 'unknown';
@cscuderi
cscuderi / Default (OSX).sublime-keymap
Last active Sep 30, 2016
Sublime Text 3 user settings
View Default (OSX).sublime-keymap
[
{ "keys" : ["super+\\"], "command" : "toggle_side_bar" },
{ "keys" : ["ctrl+alt+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys" : ["ctrl+alt+right"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["super+up"], "command": "noop" },
{ "keys": ["super+down"], "command": "noop" }
]
View img-alt-list.js
// 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 / break-text.css
Last active Aug 29, 2015
Breaks text cross-browser
View break-text.css
.break-text {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
View inline-svg-with-fallback.html
<svg width="96" height="96">
<image xlink:href="svg.svg" src="svg.png" width="96" height="96"/>
</svg>
You can’t perform that action at this time.