Skip to content

Instantly share code, notes, and snippets.

View timrourke's full-sized avatar
🇺🇦

Tim Rourke timrourke

🇺🇦
View GitHub Profile
@timrourke
timrourke / srcset-syntax.html
Last active August 29, 2015 14:22
Basic srcset syntax for resolution switching
<img src="http://timrourke.com/content/uploads/2015/06/IMG_3304.jpg"
sizes="100vw"
srcset="http://timrourke.com/content/uploads/2015/06/IMG_3304-320x240.jpg 320w,
http://timrourke.com/content/uploads/2015/06/IMG_3304-640x480.jpg 640w,
http://timrourke.com/content/uploads/2015/06/IMG_3304-1024x768.jpg 1024w,
http://timrourke.com/content/uploads/2015/06/IMG_3304-1280x960.jpg 1280w,
http://timrourke.com/content/uploads/2015/06/IMG_3304-1600x1200.jpg 1600w,
http://timrourke.com/content/uploads/2015/06/IMG_3304-2000x1500.jpg 2000w,
http://timrourke.com/content/uploads/2015/06/IMG_3304.jpg 3264w"
alt="Il Duomo di Siena al tramonto (The Cathedral of Siena at sunset)"
@timrourke
timrourke / README.md
Last active August 29, 2015 14:19 — forked from razor-x/README.md

Load GitHub Gists asynchronously

Requires jQuery.

Jekyll plugin included that modifies the gist markup added by its gist Liquid tag.

Load GitHub Gists asynchronously and optionally specify which file to show. This allows you to keep related files in a single gist, but show them individually on your pages. The async loading prevents your page rendering from stalling.

@timrourke
timrourke / Gruntfile.js
Last active February 19, 2016 14:23
WordPress Deployment Gruntfile
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//rsync handles the file transfers of our static assets.
//we use rsync because it checks to see if a file is already
//at the destination, saving tons of bandwidth and time for
//file uploads.
rsync: {