Skip to content

Instantly share code, notes, and snippets.

View joeyhoer's full-sized avatar

Joey Hoer joeyhoer

View GitHub Profile
@joeyhoer
joeyhoer / gruntfile.js
Last active August 29, 2015 13:56
Browser Sync Gruntfile
module.exports = function(grunt) {
grunt.initConfig({
// Project Configuration
pkg: grunt.file.readJSON("package.json"),
sass: {
dist: {
options: {
style: 'compressed',
@joeyhoer
joeyhoer / gist:5499908
Created May 2, 2013 03:06
Load either Zepto or jQuery, as necessary, from a CDN with a local fallback. For use with ZURB Foundation 4.
<script>
document.write('<script src=//cdnjs.cloudflare.com/ajax/libs/' +
('__proto__' in {} ?
'zepto/1.0/zepto.min' :
'jquery/1.9.1/jquery.min')
+ '.js><\/script>')
</script>
<script>window.$ || document.write('<script src=/js/vendor/' +
('__proto__' in {} ? 'zepto' : 'jquery')
+ '.js><\/script>')