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
//Resize Window | |
function onResize() { | |
}; | |
var doit; | |
doit = setTimeout(onResize, 400); | |
window.onresize = function() { | |
clearTimeout(doit); | |
doit = setTimeout(onResize, 400); | |
}; |
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 browserSupports360 () { | |
// YouTube supports 360 videos in a limited set of browsers, | |
// see https://support.google.com/youtube/answer/6178631 | |
var ua = navigator.userAgent; | |
// No mobile browser is supported at the moment | |
if (/Mobile/.test(ua) || /Tablet/.test(ua)) return false; | |
// Chrome >= 40 |
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
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
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
$critical-css-only:true !default; | |
@mixin critical($critical-only:true){ | |
@if (($critical-css-only and $critical-only) or (not $critical-css-only and not $critical-only)){ | |
@content; | |
} | |
} |