This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {Object|string} input - The string or object to flatten into a hash key string | |
* @returns {string} - a string representing the object as a unique string. | |
* @example hashSafePropertyName({a:200,b:500,c:[300,200,'eggs']}); // 'a$200_b$500_c$__300_200_eggs__' | |
*/ | |
function hashSafePropertyName(input) { | |
var isString = _.isString(input); | |
var isObject = _.isObject(input) && !_.isEmpty(input) && _.isArray(input); | |
if (!isString && !isObject) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Beginnings of ES6 node Task runner to replace gulp. | |
This example uses PostCSS and Pug to process CSS and HTML templates. | |
*/ | |
// Global dependencies | |
const fs = require('fs-extra'); | |
const bs = require('browser-sync').create(); | |
const glob = require('glob'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "UTF-8"; | |
/*--------------------------------------------------------------- | |
IE6-7 Box-sizing polyfill, for Zurb ruleset | |
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ | |
https://gist.github.com/replete/7082518 | |
1) Requires box-sizing.htc from https://github.com/Schepp/box-sizing-polyfill | |
˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="no-js" lang="en"><head> | |
<head> | |
<title>Zurb Foundation 4 Orbit Thumbnails</title> | |
</head> | |
<body> | |
<style type="text/css"> | |
.orbit-bullets.has-thumbs { | |
padding-left: 0; | |
bottom: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Block Grid Variables | |
// | |
$include-html-grid-classes: $include-html-classes !default; | |
// We use this to control the maximum number of block grid elements per row | |
$block-grid-elements: 12 !default; | |
$block-grid-default-spacing: emCalc(20) !default; | |
// Enables media queries for block-grid classes. Set to false if writing semantic HTML. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I've updated the Zurb4.3/5 Grid/block-grid systems to be in line with my suggestions at https://github.com/zurb/foundation/issues/3261 | |
// http://github.com/replete | |
// | |
// Block Grid Variables | |
// | |
$include-html-grid-classes: $include-html-classes !default; | |
// We use this to control the maximum number of block grid elements per row | |
$block-grid-elements: 12 !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
LayoutBreakpoints - Sync JS with your CSS media queries - yay! | |
After painfully discovering that there is no hope for IE7 (and others) to read | |
content properties with generated content, I resolved to this solution. | |
If it doesn't work for you, you could easily change getElementsByTagName to | |
getElementsById and pop an ID attribute onto an element of your choosing. | |
See an example here: http://replete.github.io/FitTextNow/example.html (view-source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*--------------------------------------------------------------- | |
CSS Easing | |
ˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍˍ | |
https://gist.github.com/replete/6333588 | |
Vanilla: #id { transition: 350ms all $ease } | |
Compass: #id { @include transition(350ms all $ease) } | |
˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭˭*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hastily plonked together by @replete, phil@replete.nu | |
/* Use like this: | |
<div class="some-html-chunk" data-sync-height="a-unique-name">Foo</div> | |
<div class="some-other-html-chunk" data-sync-height="a-unique-name">Bar</div> | |
*/ | |
$('[data-sync-height]') | |
.each(function(i,e){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Update script for VBoxGuestAdditions | |
VBA_VERSION=4.2.8 | |
wget -c http://download.virtualbox.org/virtualbox/${VBA_VERSION}/VBoxGuestAdditions_${VBA_VERSION}.iso | |
sudo mount VBoxGuestAdditions_${VBA_VERSION}.iso -o loop /mnt | |
sudo sh /mnt/VBoxLinuxAdditions.run --nox11 | |
rm -f VBoxGuestAdditions_${VBA_VERSION}.iso |