Skip to content

Instantly share code, notes, and snippets.

Roman Kuleshov roman-ku

  • Portland, OR
Block or report user

Report or block roman-ku

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
@roman-ku
roman-ku / flask_unveil_server.py
Created Jan 1, 2019 — forked from peterkuma/server.py
A flask server for serving all JPEG images in a local directory and subdirectories. Uses unveil.js for lazy-loading of images. Thumbnails are created on the fly by PIL.
View flask_unveil_server.py
# you also need to download this file: https://github.com/luis-almeida/unveil/blob/master/jquery.unveil.js
# and place it in the same directory as this python file with the name "jquery.unveil.js"
import os
from io import BytesIO
from flask import Flask, Response, request, abort, render_template_string, send_from_directory
from PIL import Image
View script.py
import datetime
from pprint import pprint as pp
from trello import TrelloClient
client = TrelloClient(
api_key='your-key',
api_secret='your-secret',
token='your-oauth-token-key',
You can’t perform that action at this time.