Skip to content

Instantly share code, notes, and snippets.

View arthurio's full-sized avatar
🇺🇲
In Parker

Arthur Rio arthurio

🇺🇲
In Parker
View GitHub Profile
@vpontis
vpontis / copy.py
Last active January 11, 2024 18:59
Copy to clipboard from iPython on Mac OS X
"""
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"
@boertel
boertel / snippet.js
Created February 7, 2014 22:33
SSO Facebook snippet
var _punchtab_settings = {
key: "<YOUR KEY>",
display: "tab",
authentication: {
provider: "sso_facebook_<app_name>",
scope: ['email', 'user_likes'] // default scope
}
};
@boertel
boertel / gist:6813093
Created October 3, 2013 16:53
Custom notification
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
});
});