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
<script type="text/javascript" charset="utf-8"> | |
var is_ssl = ("https:" == document.location.protocol); | |
var asset_host = is_ssl ? "https://www.punchtab.com/" : "http://www.punchtab.com/"; | |
document.write(unescape("%3Cscript src='" + asset_host + "s/js/pt.js' type='text/javascript'%3E%3C/script%3E")); | |
</script> | |
<script type="text/javascript" charset="utf-8"> | |
var _ptq = _ptq || []; | |
var reward_widget_options = {}; |
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
var commentURL; | |
var links = document.getElementsByTagName("link"); | |
for (var i=0; i < links.length; i++) { | |
var href = links[i].href; | |
//look for the comment feed | |
if (href.match(/^http:\/\/\w+.blogspot.com\/feeds\/\d+\/comments\/default$/)) { | |
commentURL = href; | |
break; | |
} | |
} |
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
> db.activity.find({'publisher_id':746,'user_id':2425,'points':{'$ne':0}},{'user_id':1,'points':1,'date_created':1}) | |
{ "_id" : ObjectId("4dcd50e50db4495925000681"), "user_id" : 2425, "points" : 100, "date_created" : "Fri May 13 2011 08:40:21 GMT-0700 (PDT)" } | |
{ "_id" : ObjectId("4dcd50e50db4495925000682"), "user_id" : 2425, "points" : 100, "date_created" : "Fri May 13 2011 08:40:21 GMT-0700 (PDT)" } | |
{ "_id" : ObjectId("4dcd523f0db4495925000697"), "user_id" : 2425, "points" : 100, "date_created" : "Fri May 13 2011 08:46:07 GMT-0700 (PDT)" } | |
{ "_id" : ObjectId("4dce3f190db4495ba30000a0"), "user_id" : 2425, "points" : 100, "date_created" : "Sat May 14 2011 01:36:41 GMT-0700 (PDT)" } | |
{ "_id" : ObjectId("4dcee2fc0db4495ba30007ac"), "user_id" : 2425, "points" : 100, "date_created" : "Sat May 14 2011 13:15:56 GMT-0700 (PDT)" } | |
> db.activity.group({key:{'user_id':true},cond:{'publisher_id': 746},reduce:function(doc, prev) {prev.points+=doc.points;},initial:{'points': 0}}) | |
[ | |
{ | |
"user_i |
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
/* blogger comment integration */ | |
function onBlogSpotComment(data) { | |
if (data && data.feed && data.feed.entry.length > 0) { | |
//Get the datetime | |
var datetime = data.feed.entry[0].published.$t.split("T"); | |
var date = datetime[0]; | |
var time = datetime[1]; | |
var dateSplitted = date.split("-"); | |
var timeSplitted = time.split(":"); |
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
<script type="text/javascript" charset="utf-8"> | |
var is_ssl = ("https:" == document.location.protocol); | |
var asset_host = is_ssl ? "https://static.punchtab.com/" : "http://static.punchtab.com/"; | |
document.write(unescape("%3Cscript src='" + asset_host + "js/pt.js' type='text/javascript'%3E%3C/script%3E")); | |
</script> | |
<script type="text/javascript" charset="utf-8"> | |
var _ptq = _ptq || []; | |
var reward_widget_options = {}; | |
reward_widget_options.key = "13a1295c29f7312996986499f413af5d"; |
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
<script type="text/javascript" charset="utf-8"> | |
var is_ssl = ("https:" == document.location.protocol); | |
var asset_host = is_ssl ? "https://static.punchtab.com/" : "http://static.punchtab.com/"; | |
document.write(unescape("%3Cscript src='" + asset_host + "js/pt.js' type='text/javascript'%3E%3C/script%3E")); | |
</script> | |
<script type="text/javascript" charset="utf-8"> | |
var _ptq = _ptq || []; | |
var reward_widget_options = {}; | |
reward_widget_options.key = "13a1295c29f7312996986499f413af5d"; |
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
<div class="pt_open">Reward Program</div> |
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
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) {return;} | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk'));</script> | |
<fb:like href="http://www.facebook.com/Drobo" send="false" width="450" show_faces="false"></fb:like> |
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
<a href="https://twitter.com/drobo" class="twitter-follow-button" data-show-count="false">Follow @drobo</a> | |
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script> |
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
$(document).ready(function(){ | |
FB.Event.subscribe('edge.create', function(response) { | |
_ptq.push(["like","1"]); | |
}); | |
if (window.twttr !== undefined) { | |
if (twttr.events !== undefined) { | |
twttr.events.bind('follow', function(event) { |
OlderNewer