I hereby claim:
- I am donohoe on github.
- I am donohoe (https://keybase.io/donohoe) on keybase.
- I have a public key whose fingerprint is E3DA EA47 D10B 05FF 2626 E451 B0B9 008F 3DBE 9F12
To claim this, I am signing this object:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
/* Requires jQuery */ | |
function isInView(el) { | |
var docViewTop = $(window).scrollTop(); | |
var docViewBtm = docViewTop + $(window).height(); | |
var elTop = $(el).offset().top; | |
var elBtm = elTop + $(el).height(); | |
return ((elBtm <= docViewBtm) && (elTop >= docViewTop)); | |
} |
document.getElementById('items').addEventListener('scroll', function() { | |
var seekEl = document.getElementById("items"); | |
var contentHeight = seekEl.scrollHeight - seekEl.offsetHeight; | |
if (contentHeight <= seekEl.scrollTop) { | |
console.log("Scroll end"); | |
} | |
}, false); |
// A minor tweak the sake of changing | |
function supportsSVG(){ | |
return !!('createElementNS' in (d = document) && | |
d.createElementNS('http://www.w3.org/2000/svg','svg').createSVGRect) | |
} |
I hereby claim:
To claim this, I am signing this object:
<html> | |
<head> | |
<title>Super Simple Sandbox</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
</head> | |
<body> | |
<script src="nyt.js"></script> | |
</body> | |
</html> |
(function(){ | |
console.log("GK ftw"); | |
function checkFlag() { | |
var checkPage = document.getElementsByTagName("genius-back-page"); | |
if (checkPage.length) { | |
var checkPageEl = checkPage[0] | |
checkPageEl.parentNode.removeChild(checkPageEl); | |
} | |
var checkPrompt = document.getElementsByTagName("genius-pre-annotation-prompt"); | |
if (checkPrompt.length) { |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/* | |
In Wordpress, using the "The SEO Framework" plugin, we want to break the inheritance | |
between the Meta Title and that of OpenGraph/Twitter Title | |
(we also do this for Description but the approach is the same) | |
Relates to: OpenGraph Title | |
We do not want the OG Title to inherit from the Meta Title (as is default behavior) | |
If no OG Title is given, it should default to the article headline. | |
Else use the custom OG Title. |