Skip to content

Instantly share code, notes, and snippets.

@tdhartwick
tdhartwick / Modal Re-instantiate Snippet
Created November 28, 2016 18:29
This will automatically open your modal and re-instantiate a modal when clicking the "x".
// Opens your Modal
$('** My Modal Class **').foundation('open');
// Re-instantiates Modal
$('** My Modal Class **').on('closed.zf.reveal', function() {
setTimeout(function() {
$('** My Modal Class **').foundation('open');
}, 100);
});

Keybase proof

I hereby claim:

  • I am tdhartwick on github.
  • I am brah (https://keybase.io/brah) on keybase.
  • I have a public key ASDOagotZLETq9t1664yw7Vlmv43-DWIpa6mxGWCcg9_0Qo

To claim this, I am signing this object:

@tdhartwick
tdhartwick / Gruntfile.js
Created June 1, 2017 18:09
Foundation 5 Gruntfile with Autoprefixer
module.exports = function(grunt) {
var hljs = require('highlight.js');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
csssplit: {
dist: {
src: ['dist/assets/css/app.css'],
dest: 'dist/assets/css/app.css',
options: {
@tdhartwick
tdhartwick / gulpfile.babel.js
Last active November 21, 2017 19:22
Sass lint Gulpfile
'use strict';
import plugins from 'gulp-load-plugins';
import yargs from 'yargs';
import browser from 'browser-sync';
import gulp from 'gulp';
import panini from 'panini';
import rimraf from 'rimraf';
import sherpa from 'style-sherpa';
import yaml from 'js-yaml';

Keybase proof

I hereby claim:

  • I am tdhartwick on github.
  • I am thartwick (https://keybase.io/thartwick) on keybase.
  • I have a public key ASBof4CR0ZdPuXMB1dixf7mgLtSa8MZ5hQWWGZokyql0ogo

To claim this, I am signing this object: