This an ordered version of the original gist located at https://gist.github.com/marcanuy/06cb00bc36033cd12875
- -aa
- aa-
- -ab
This an ordered version of the original gist located at https://gist.github.com/marcanuy/06cb00bc36033cd12875
#!/usr/bin/python3 | |
""" | |
This the CLI script to add tags to your reading list | |
You will need a Pocket application. You can create one at: | |
https://getpocket.com/developer/apps/new | |
/!\ Don't forget to set the variables defined after. | |
Requires Python3 and the "requests" library. |
# -*- coding:utf-8 -*- | |
from flask import current_app | |
import mimetypes, requests, os | |
mimetypes.init() | |
def guess_mimetype(name): | |
type_found = mimetypes.guess_type(name) |
# -*- coding:utf-8 -*- | |
from urllib.parse import parse_qs, quote | |
import oauth2, time, requests, json | |
""" | |
Usage: | |
# To setup the access: | |
# GET /twitter/authorize |
// usage: | |
// pdfshift({'source': 'https://en.wikipedia.org/wiki/PDF', 'use_print': true}, 'your_api_key').then(...) | |
function pdfshift(data, apiKey) { | |
/** | |
* Javascript function for PDFShift | |
* @param apiKey: Your API key from PDFShift. Optional. Can be null | |
* @param data: Parameters to send to PDFShift. Must contains at least the "source" | |
*/ | |
return new Promise(function (resolve, reject) { |
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
import zipfile, urllib2, argparse, os | |
try: | |
from BytesIO import BytesIO | |
except ImportError: | |
from io import BytesIO |
This is the documentation of our API endpoint at ImprovMX.com. This lets you list, create, edit and remove domain and email aliases that you can forward to programatically.
For more information, visit ImprovMX.com
The base url's ImprovMX api can be accessed at
import ssl | |
import socket | |
import asyncio | |
import logging | |
import collections | |
import time | |
from asyncio import sslproto | |
from email._header_value_parser import get_addr_spec, get_angle_addr | |
from email.errors import HeaderParseError |
# Add this import: | |
from sqlalchemy.sql import text | |
def upgrade(): | |
# ... | |
conn = op.get_bind() | |
conn.execute(text('UPDATE ...')) | |
# ... |