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
window.ptReady = window.ptReady || []; | |
window.ptReady.push(function () { | |
PT.event.bind("loyalty.earned", function (message) { | |
// message.activities : array of activities | |
// message.points : sum of points for each activities | |
}); | |
}); |
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 _punchtab_settings = { | |
key: "<YOUR KEY>", | |
display: "tab", | |
authentication: { | |
provider: "sso_facebook_<app_name>", | |
scope: ['email', 'user_likes'] // default scope | |
} | |
}; |
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
""" | |
Add copy to clipboard from IPython! | |
To install, just copy it to your profile/startup directory, typically: | |
~/.ipython/profile_default/startup/ | |
Example usage: | |
%copy hello world | |
# will store "hello world" |