This file contains 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 (){ | |
function log(t){ | |
console.log("ForbesSkip: " + t); | |
} | |
function tryAgain(f){ | |
log("Not fully loaded yet, try again."); | |
window.setTimeout(f, 200); | |
} |
This file contains 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
jQuery(document).ready(function() { | |
var originalTitle = document.getElementsByTagName("title")[0].innerHTML; | |
jQuery(window).on("blur", function() { | |
timerId = setTimeout(function() { | |
document.getElementsByTagName("title")[0].innerHTML = "(1) " + originalTitle; | |
} | |
, 2000); | |
} | |
); | |
jQuery(window).on("focus", function() { |
This file contains 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
// var s = document.createElement('script'); | |
// s.type = 'text/javascript'; | |
// // s.async = true; | |
// if (my fancy sampling condition) { | |
// js.src = "//remote-domain.com/script-1.js"; | |
// } else { | |
// js.src = "//remote-domain.com/script-2.js"; | |
// } |
This file contains 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
// var s = document.createElement('script'); | |
// s.type = 'text/javascript'; | |
// // s.async = true; | |
// if (my fancy sampling condition) { | |
// js.src = "//remote-domain.com/script-1.js"; | |
// } else { | |
// js.src = "//remote-domain.com/script-2.js"; | |
// } |
This file contains 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 guid() { | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(1); | |
} | |
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | |
s4() + '-' + s4() + s4() + s4(); | |
} | |
function chat() { |
This file contains 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
var e = document.getElementsByTagName("a"); | |
for(i = 0; i < e.length; i++){ | |
var s = e[i].href; | |
var t = e[i].text | |
if(!s.match('digitalimpact')){ | |
console.log(t + ",", s);} | |
} | |
Magdeleine, http://magdeleine.co/ | |
Public Domain Archive, http://publicdomainarchive.com/ |
This file contains 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
#!/usr/bin/env python2 | |
import requests, json | |
api = 'http://urls.api.twitter.com/1/urls/count.json?url=' | |
protocols = ['http://', 'https://'] | |
def get_all(url): | |
'''check twitter API for URLs with both protocols''' | |
counts = [] |
This file contains 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
var e = document.getElementsByTagName("a"); | |
for(i = 0; i < e.length; i++){ | |
var s = e[i].href; | |
if(s.match(/\/gp\/product\//)){console.log(s);} | |
} |
This file contains 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
http://sourceforge.net/projects/alienarena.mirror/ | |
http://sourceforge.net/projects/altdrag.mirror/ | |
http://sourceforge.net/projects/amaya.mirror/ | |
http://sourceforge.net/projects/android-notifier.mirror/ | |
http://sourceforge.net/projects/android-wifi-tether.mirror/ | |
http://sourceforge.net/projects/android-wired-tether.mirror/ | |
http://sourceforge.net/projects/apachederby.mirror/ | |
http://sourceforge.net/projects/apachehttp.mirror/ | |
http://sourceforge.net/projects/aptana.mirror/ | |
http://sourceforge.net/projects/apt-mirror/ |
This file contains 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
<script type="text/javascript">var submitted=false;</script> | |
<iframe name="hidden_iframe" | |
id="hidden_iframe" | |
style="display:none;" | |
onload="if(submitted) {window.location='http://domain.com/thanks.html';}"> | |
</iframe> | |
<form action="https://docs.google.com/forms/d/cdjhesjd2763jhdjsshdjdshdjs267263723jhj23hjc/formResponse" | |
method="post" | |
target="hidden_iframe" | |
onsubmit="submitted=true;"> |