Skip to content

Instantly share code, notes, and snippets.

@YungSang
YungSang / pipio.js
Created December 10, 2010 00:31
[Deprecated] Pipio Plugin for Cortex
function Pipio() {
this.background = '#ffffff';
}
Pipio.prototype = new Service('Pipio');
Pipio.prototype.constructor = function() {
};
Pipio.prototype.authenticate = function(username, password, success, error) {
@YungSang
YungSang / gist:701118
Created November 15, 2010 22:53
[Deprecated] Revised "Post to Pip.io" Bookmarklet: escape -> encodeURIComponent to post UTF-8 characters correctly
javascript:void((function(){var%20u=location.href,e=encodeURIComponent,c='http://pip.io/api/posts/post/create',m=prompt('Post%20this%20link%20on%20Pip.io',document.title);if(m!=null){c+='?attachments=[{%22type%22:2,%22url%22:%22'+e(u)+'%22}]&body='+e(m)+'&targets=&channels=&cc=&cc_data=&source_id=0&source_type=1&is_public=1&reply_id=0';var%20w=window.open(c,'pipwin','height=1;width=1');setTimeout(function(){w.close();},2000);}})())