This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# MySQL DB dump to Git commit | |
# | |
# Dumps the specified mysql database to the given location and commits it and | |
# the previous database to the Git repository. | |
# | |
# It is assumed you have already setup the Git respository to only be the | |
# a checkout of the database backup location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="module__image image--lazy" | |
data-image-src="Tim-Smith_220x140_220_140_int_c1.jpg"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label for="username-1">Disabled Username</label> | |
<input id="username-1" name="username-1" disabled value="AaronGustafson"> | |
<label for="username-2">Readonly Username</label> | |
<input id="username-2" name="username-2" readonly value="AaronGustafson"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { background: white; color: black; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--foreground-color: #333; | |
--background-color: #fff; | |
} | |
body { | |
background: var(--background-color); | |
color: var(--foreground-color); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Gojiro", | |
"description": "Gojiro, a freak mutation with a cynical worldview, suffers the pain of solitude as well as several maladies experienced by entertainers, including drug abuse and suicidal tendencies.", | |
"icons": [{ | |
"src": "images/icon.png", | |
"sizes": "192x192" | |
}], | |
"categories": ["books", "fiction", "science fiction & fantasy", "kaiju", "怪獣"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lazy Load Images | |
// Assumes WebP versions exist for all images | |
// | |
// data-img="A|B|C|D|E" | |
// A = source url | |
// B = alt | |
// C = prepend? (y/n) | |
// D = insert into (descendent selector) | |
// E = svg? | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the active Media Query as defined in the CSS | |
// Use the following format: | |
// #getActiveMQ-watcher { font-family: "default"; } | |
// @media only screen and (min-width:20em){ #getActiveMQ-watcher { font-family: "small"; } } | |
// etc. | |
window.getActiveMQ = function() { | |
// Build the watcher | |
var $watcher = document.createElement('div'), | |
// alias getComputedStyle | |
computed = window.getComputedStyle, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="email" name="email" id="email" | |
required aria-required="true"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
path = require('path'), | |
folder = require('gulp-folders'), | |
gulpIf = require('gulp-if'), | |
insert = require('gulp-insert'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
notify = require('gulp-notify'), | |
rename = require('gulp-rename'), | |
source_folder = 'source/js', |