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
<div id="fb-root"></div> | |
<script> | |
(function() { | |
window.fbAsyncInit = function() { | |
FB.Event.subscribe('edge.create', function(response) { | |
_gaq.push(['_trackSocial', 'facebook', 'like', response]); | |
}); | |
FB.Event.subscribe('edge.remove', function(response) { | |
_gaq.push(['_trackSocial', 'facebook', 'unlike', response]); | |
}); |
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
import gdata.analytics.service | |
from datetime import date, timedelta | |
from xml.dom.minidom import parseString | |
def main(): | |
client = gdata.analytics.service.AnalyticsDataService() | |
client.ClientLogin('<your email here>', '<your password here>') | |
today = date.today() |
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
"libMemcached cache backend" | |
from django.core.cache.backends.base import (BaseCache, | |
InvalidCacheBackendError) | |
from django.utils.encoding import smart_unicode, smart_str | |
try: | |
import pylibmc as memcache | |
is_pylibmc = True | |
except ImportError: |