This is now an actual repo:
This file contains hidden or 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
| /* | |
| * matchMedia() polyfill - test whether a CSS media type or media query applies | |
| * primary author: Scott Jehl | |
| * Copyright (c) 2010 Filament Group, Inc | |
| * MIT license | |
| * adapted by Paul Irish to use the matchMedia API | |
| * http://dev.w3.org/csswg/cssom-view/#dom-window-matchmedia | |
| * which webkit now supports: http://trac.webkit.org/changeset/72552 | |
| * | |
| * Doesn't implement media.type as there's no way for crossbrowser property |
This file contains hidden or 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
| watch "images/*" do |base, relative| | |
| puts "File size of #{relative} is: #{File.size(File.join(base, relative))}" | |
| end |
This file contains hidden or 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
| if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
| var Storage = function (type) { | |
| function createCookie(name, value, days) { | |
| var date, expires; | |
| if (days) { | |
| date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| expires = "; expires="+date.toGMTString(); |
This file contains hidden or 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
| (function ($, window, undefined) { | |
| var m = document.createElement('i'), | |
| m_style = m.style, | |
| // TODO support other browsers easings - based on Safari's easing options and ported to Emile easing. | |
| stanardEasing = { | |
| 'ease-in-out' : function(pos){if((pos/=0.5)<1){return 0.5*Math.pow(pos,4);}return -0.5*((pos-=2)*Math.pow(pos,3)-2);}, | |
| 'ease-in' : function(pos){return Math.pow(pos,4);}, | |
| 'ease-out' : function(pos){return Math.pow(pos,0.25);}, | |
| 'linear': function (i) {return i;} |
NewerOlder