Skip to content

Instantly share code, notes, and snippets.

View ericwbailey's full-sized avatar

Eric Bailey ericwbailey

View GitHub Profile
@ericwbailey
ericwbailey / gist:7138149
Last active March 2, 2019 16:55
Mobify.js responsive <picture> example with accessible descriptive text. #comment #smashing
<picture data-src="http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama-mobile.jpg">
<source src="//ir0.mobify.com/webp/400/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama-mobile.jpg">
<source src="//ir0.mobify.com/webp/400/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama.jpg" media="(min-width: 512px)">
<source src="//ir0.mobify.com/webp/512/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama.jpg" media="(min-width: 1024px)" data-width="512">
<source src="//ir0.mobify.com/webp/512/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama.jpg" media="(min-width: 2048px)" data-width="1024">
<img src="responsive-obama.jpg">
<p>A photograph of United States President Barack Obama shaking hands.</p>
</picture>
@ericwbailey
ericwbailey / gulpfile.js
Last active March 2, 2019 16:48
Entity Convert issues #comment #github
var gulp = require('gulp');
var entityconvert = require('gulp-entity-convert');
var minifyHTML = require('gulp-minify-html');
gulp.task('docs', function() {
var src = './src/docs/*.+(htm|html)';
var dest = './build';
return gulp.src(src)
@ericwbailey
ericwbailey / .scss-lint.yml
Last active March 2, 2019 16:42
Sample Sass linter settings #sass
# Default application configuration that all configurations inherit from.
scss_files: "**/*.scss"
plugin_directories: ['.scss-linters']
# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []
linters:
## Skeleton config file for RetroArch
# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ...
# This will be overridden by explicit command line options.
# savefile_directory =
# Save all save states (*.state) to this directory.
# This will be overridden by explicit command line options.
# savestate_directory =
@ericwbailey
ericwbailey / resources.md
Last active March 2, 2019 17:08
Boston CSS Designing for Inclusion talk resource links #speaking #boston-css
@ericwbailey
ericwbailey / opentype.json
Last active March 2, 2019 17:06
#writing
{
"caps-to-small-caps": {
"name": "Caps to Small Caps",
"category": "Common",
"example": "asfab ASFAB Asfab",
"description": "",
"more-info": ""
},
"case-sensitive-forms": {
"name": "Case Sensitive Forms",
@ericwbailey
ericwbailey / file-types.css
Last active December 8, 2020 07:03
#writing #css-tricks
/*
* Archives
* A compressed collection of data.
*/
a[href$=".7z"],
a[href$=".cab"],
a[href$=".gz"],
a[href$=".lzh"],
a[href$=".rar"],
a[href$=".tar"],
@ericwbailey
ericwbailey / cloudSettings
Last active October 19, 2021 01:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-19T01:18:14.578Z","extensionVersion":"v3.4.3"}
@ericwbailey
ericwbailey / card.html
Last active March 2, 2019 17:23
Max Böck card tweet (https://twitter.com/mxbck/status/1099722405612843008) #comment #twitter
<div class="card">
<a href="/foo" class="card__link" aria-labelledby="card-1234-title">
<h2 class="card__title" id="card-1234-title">The Card Title</h2>
<img class="card__image" src="/some/image.jpg" alt="">
<small class="card__meta">Some category</small>
<p class="card_summary">Lorem ipsum, dolor sit amet!</p>
</a>
</div>
@ericwbailey
ericwbailey / _colors.scss
Created May 29, 2019 19:41
#writing #thoughtbot
$colors: (
blue: #007aff,
green: #4cd964,
red: #ff3b30,
tab: (
border: hsla(3, 100%, 59%, 0.50),
type: #8e8e93
)
);