Skip to content

Instantly share code, notes, and snippets.

View 4aficiona2's full-sized avatar
🖤

Michael Zumstein 4aficiona2

🖤
View GitHub Profile
@4aficiona2
4aficiona2 / modernizr-tests.js
Created October 4, 2011 11:12 — forked from danott/modernizr-tests.js
Custom Modernizr tests that are useful.
/* modernizr-test.js
* Daniel Ott
* 3 March 2011
* Custom Tests using Modernizr's addTest API
*/
/* iOS
* There may be times when we need a quick way to reference whether iOS is in play or not.
* While a primative means, will be helpful for that.
*/
@4aficiona2
4aficiona2 / parallaxed-element.js
Last active August 29, 2015 14:01
Parallaxed / delayed Element
/* parallaxed-element.js
* Parallaxed / delayed element
*/
$(document).ready(function(){
$(document).scroll(function(){
var distanceToTop = $(document).scrollTop();
$('.parallaxed').css('margin-top', (distanceToTop/10)*9);
});
});
@4aficiona2
4aficiona2 / SassMeister-input-HTML.html
Created June 20, 2014 20:36
Generated by SassMeister.com.
<div class="positiveOrNegative">positiveOrNegative: </div>
@4aficiona2
4aficiona2 / webfontloader-monotype-only.js
Last active August 29, 2015 14:08
Web Font Loader v1.5.6 - Monotype Build only
/* Web Font Loader v1.5.6 - Monotype Build only - (c) Adobe Systems, Google. License: Apache 2.0 */
;(function(window,document,undefined){var j=!0,k=null,m=!1;function n(a){return function(){return this[a]}}var p=this;function q(a,b){var c=a.split("."),d=p;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&void 0!==b?d[e]=b:d=d[e]?d[e]:d[e]={}}function aa(a,b,c){return a.call.apply(a.bind,arguments)}
function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function r(a,b,c){r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return r.apply(k,arguments)}var s=Date.now||function(){return+new Date};function t(a,b){this.s=a;this.A=b||a;this.r=this.A.document}t.prototype.createElement=function(a,b,c){a=this.r.cre
@4aficiona2
4aficiona2 / drupal-theme-remove-node-info-files.sh
Last active April 27, 2016 21:43
Drupal Theme .info file collision after adding gulp (node) modules
# cd to Drupal theme directory
# list all .info files
find node_modules -type f -name "*.info"
# remove all node module .info files
find node_modules -type f -name "*.info" | xargs rm
@4aficiona2
4aficiona2 / package.json
Created October 29, 2014 10:35
Remove node_module .info files due to Drupal theme collision in post installation of 'npm install'
{
"scripts": {
"postinstall": "find node_modules -type f -name '*.info' | xargs rm;"
}
}
@4aficiona2
4aficiona2 / webfontloader_build.sh
Last active August 29, 2015 14:09
Webfont Loader rake command
# build a custom webfont loader
cd ~/Projects/yokai-playground/webfontloader/target;
rm webfont.js;
cd ..;
#rake compile['typekit'];
#rake compile['monotype'];
rake compile['google'];
@4aficiona2
4aficiona2 / webfontloader-monotype-only.js
Last active August 29, 2015 14:09
Web Font Loader v1.5.8 - Monotype Build only
/* Web Font Loader v1.5.8 - Monotype Build only - (c) Adobe Systems, Google. License: Apache 2.0 */
;(function(window,document,undefined){var h=this;function l(a,b){var c=a.split("."),d=h;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function m(a,b,c){return a.call.apply(a.bind,arguments)}
function p(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function q(a,b,c){q=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?m:p;return q.apply(null,arguments)}var r=Date.now||function(){return+new Date};function s(a,b){this.B=a;this.A=b||a;this.v=this.A.document}s.prototype.createElement=function(a,b,c){a=this.v.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&("style"==d?a.styl
@4aficiona2
4aficiona2 / webfontloader.js
Last active August 29, 2015 14:09
Web Font Loader v1.5.8
/* Web Font Loader v1.5.8 - (c) Adobe Systems, Google. License: Apache 2.0 */
;(function(window,document,undefined){var k=this;function m(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function aa(a,b,c){return a.call.apply(a.bind,arguments)}
function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function n(a,b,c){n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return n.apply(null,arguments)}var q=Date.now||function(){return+new Date};function s(a,b){this.K=a;this.v=b||a;this.F=this.v.document}s.prototype.createElement=function(a,b,c){a=this.F.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&("style"==d?a.style.cssText=b[d]:a.s
@4aficiona2
4aficiona2 / Checkboxes-select-showcase-for-INFRAS.markdown
Created December 29, 2014 17:01
Checkboxes select showcase for INFRAS