Skip to content

Instantly share code, notes, and snippets.

View kevinschaul's full-sized avatar

Kevin Schaul kevinschaul

View GitHub Profile
@wesbos
wesbos / gist:0d5572a29e4f5688a1c8
Last active September 1, 2023 17:59
Handy list of widths to target in a responsive website
320
321
322
323
324
325
326
327
328
329
@brianleroux
brianleroux / gruntfile.js
Created August 27, 2013 17:35
calling `npm test` from `grunt test`
var shell = require('shelljs')
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
})
grunt.registerTask('default', 'My "default" task description.', function() {
grunt.log.writeln('Currently running the "default" task.');
/*
Usage:
When generating a page:
var abTest = new AbTest('your-test-slug');
if (abTest.variation == 0)
$('#thediv').addClass('red');
else if (abTest.variation == 1)