Skip to content

Instantly share code, notes, and snippets.

yeonhoyoon

Block or report user

Report or block yeonhoyoon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yeonhoyoon
yeonhoyoon / multipart.js
Last active Sep 23, 2017
Send multipart request from javascript
View multipart.js
if (XMLHttpRequest.prototype.sendAsBinary === undefined) {
XMLHttpRequest.prototype.sendAsBinary = function(string) {
var bytes = Array.prototype.map.call(string, function(c) {
return c.charCodeAt(0) & 0xff;
});
this.send(new Uint8Array(bytes));
};
}
function sendMultiPartReqeust(filename, mimeType, imageData, message) {
@yeonhoyoon
yeonhoyoon / UploadTistoryToEvernote.py
Last active Dec 16, 2015
A script to upload Tistory backup XML file to Evernote. Developer token from Evernote required.
View UploadTistoryToEvernote.py
import re
import sys
from lxml import etree
from StringIO import StringIO
from evernote.edam.type import ttypes
from evernote.api.client import EvernoteClient
parser = etree.HTMLParser()
def convert_to_edml(text):
You can’t perform that action at this time.