Skip to content

Instantly share code, notes, and snippets.

Chris Sealey chrissealey

View GitHub Profile
@chrissealey
chrissealey / tutti-frutti.css
Created Sep 13, 2016
Tutti Frutti — A vibrant Pygments/Rouge theme
View tutti-frutti.css
.highlight, .highlight pre, .highlight code {
color: #333;
}
.highlight .n { /* name */
color: #1b9af7;
}
.highlight .k { /* keyword */
color: #8bd300;
}
.highlight .o { /* operator */
@chrissealey
chrissealey / imageHandler.js
Last active Jan 27, 2018
Handling Images in JavaScript
View imageHandler.js
function imageHandler(action, image, callback) {
switch (action) {
case 'fallback':
if (image.hasAttribute('data-fallback')) {
image.style.backgroundColor = image.getAttribute('data-fallback');
}
You can’t perform that action at this time.