Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<style media="screen">
body {
padding: 0;
margin: 0;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<img src="https://quartz-obsession.quartz.work:8000/result?poll_id=9818479&answer_id=44931936" alt="" width="500" height="100" style="border: 1px solid red;">
</body>
</html>
<svg width="500px" height="100px" viewBox="0 0 500 100" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g>
<rect fill="#D8D8D8" x="0" y="0" width="500" height="100"></rect>
<rect fill="#FF0000" x="0" y="0" width="152" height="100"></rect>
</g>
</g>
</svg>
if( /FBAV/i.test(navigator.userAgent) {
}
@micahwave
micahwave / gist:9e13f4b5de60e47d4440
Created November 7, 2014 22:18
Example protected iframe markup
<form id="wpcom-iframe-form-d0dd6dc80896d44e1f92797eb842b978-545d44c092acf" target="wpcom-iframe-d0dd6dc80896d44e1f92797eb842b978-545d44c092acf" method="post" action="//wpcomwidgets.com/?wpcom_origin=http%3A%2F%2Fqzstage.wordpress.com" style="display: none"><input type="hidden" name="frameborder" value="0" /><input type="hidden" name="scrolling" value="no" /><input type="hidden" name="resize" value="0" /><input type="hidden" name="replace_attributes" value="1" /><input type="hidden" name="fallback" value="&lt;p class=&quot;protected-embed-fallback&quot;&gt;&lt;a href=&quot;http://www.bloomberg.com/video/embed/pYrwEuk2T9~xmXMYD3o6fg?height=395&amp;width=640&quot;&gt;http://www.bloomberg.com/video/embed/pYrwEuk2T9~xmXMYD3o6fg?height=395&amp;width=640&lt;/a&gt;&lt;/p&gt;" /><input type="hidden" name="class" value="" /><input type="hidden" name="width" value="640" /><input type="hidden" name="height" value="430" /><input type="hidden" name="style" value="overflow:hidden;" /><input type="hidden" name="_data" value
function (b,c,d){var i,
f;"string"!==typeof b&&(d=c,c=b,b=null);I(c)||(d=c,c=[]);!c.length&&H(d)&&d.length&&(d.toString().replace(ia,"").replace(ja,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c));if(O){if(!(i=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),i=P;i&&(b||(b=i.getAttribute("data-requiremodule")),f=B[i.getAttribute("data-requirecontext")])}(f?f.defQueue:R).push([b,c,d])}
function P(){var e=b(arguments),t=[],n,r;return typeof e[0]=="string"&&(n=e.shift()),w(e[0])&&(t=e.shift()),r=e.shift(),O(n,function(e){function s(){var i=D(b(t),n),s;typeof r=="function"?s=r.apply(n,i):s=r,typeof s=="undefined"&&(s=n.exports),e(s)}var n=this,i=[];for(var o=0,u=t.length;o<u;o++){var a=t[o];E(["require","exports"],a)==-1&&i.push(_(a,n))}i.length>0?H.apply(this,i.concat(s)):s()})}
(function(root, factory) {
// Set up Backbone appropriately for the environment.
if (typeof exports !== 'undefined') {
// Node/CommonJS, no need for jQuery in that case.
factory(root, exports, require('underscore'));
} else if (typeof define === 'function' && define.amd) {
// AMD
define(['underscore', 'jquery', 'exports'], function(_, $, exports) {
// Export global even in AMD case in case this script is loaded with
// others that may still expect a global Backbone.
# aliases
alias c="clear"
alias g="git"
alias gp="git push"
alias gu="git pull"
alias cdt="cd ~/Dropbox/WordPress/wp-content/themes/vip/time2014"
alias gphm="git push heroku master"
alias ....="cd ../../../"
alias ...="cd ../../"
alias ..="cd ../"
comscore: function() {
try {
COMSCORE.beacon({ c1: "2", c2:"6035728"});
} catch(e) {}
// do comscore pv candidate
jQuery.get(
Time.home_url + "/wp-content/themes/vip/time2014/pageview_candidate.xml",
{