Skip to content

Instantly share code, notes, and snippets.

yeonhoyoon /
Last active Dec 16, 2015
A script to upload Tistory backup XML file to Evernote. Developer token from Evernote required.
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):
yeonhoyoon / multipart.js
Last active Jan 8, 2021
Send multipart request from javascript
View multipart.js
if (XMLHttpRequest.prototype.sendAsBinary === undefined) {
XMLHttpRequest.prototype.sendAsBinary = function(string) {
var bytes =, function(c) {
return c.charCodeAt(0) & 0xff;
this.send(new Uint8Array(bytes));
function sendMultiPartReqeust(filename, mimeType, imageData, message) {