Skip to content

Instantly share code, notes, and snippets.

🇫🇷
In Nantes

Arthur Rio arthurio

🇫🇷
In Nantes
  • Minerva Project, Inc
  • San Francisco
View GitHub Profile
@vpontis
vpontis / copy.py
Last active Dec 16, 2019
Copy to clipboard from iPython on Mac OS X
View copy.py
"""
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 Feb 7, 2014
SSO Facebook snippet
View snippet.js
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 Oct 3, 2013
Custom notification
View gist:6813093
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
});
});
You can’t perform that action at this time.