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
NUMBER_OF_CPU_CORES=2 | |
BASHRC=~/.bashrc # use .bash_profile on OS X | |
# Remove old Node.JS installation | |
rm ~/local/*/node* -rf | |
rm ~/.node_libraries -rf | |
sudo rm /usr/local/*/node* -rf | |
sudo rm /usr/*/node* -rf | |
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 base64 | |
from django.utils import simplejson | |
import urllib | |
from google.appengine.api import urlfetch | |
def track(event, properties=None): | |
""" | |
A simple function for asynchronously logging to the mixpanel.com API on App Engine | |
(Python) using RPC URL Fetch object. | |
@param event: The overall event/category you would like to log this data under |
NewerOlder