Skip to content

Instantly share code, notes, and snippets.

@romaklimenko
romaklimenko / index.html
Created April 5, 2016 12:00 — forked from anonymous/index.html
Data URI downloader // source https://jsbin.com/zuwulu
<!DOCTYPE html>
<html>
<head>
<title>Data URI downloader</title>
<style id="jsbin-css">
body {
font-family: Verdana;
}
label {
/*global phantom:true, console:true, WebPage:true, Date:true*/
(function () {
var url, timeout, page, defer;
if (phantom.args.length < 1) {
console.log("Usage: phantomjs run-mocha.coffee URL [timeout]");
phantom.exit();
}
url = phantom.args[0];
@romaklimenko
romaklimenko / gist:3685835
Created September 9, 2012 17:21 — forked from derekg/gist:1198576
Example of uploading photos to Tumblr w/ the V2 API # http://www.tumblr.com/docs/en/api/v2
import urllib,hmac,time,hashlib,base64,httplib,sys,json,urlparse
## This is just a simple example that is self contained.
## You will need to modified it to make it work
##
## creds - need to be filled out
## blognmae - needs to be defined
##
## reads in image files from the command line and posts to your blog