This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageOps | |
import os | |
import sys | |
import glob | |
PATH = './img/' | |
IMAGES = glob.glob(PATH+'*.jpg') | |
COLS = 5 | |
# ROWS = len(IMAGES) / COLS | |
ROWS = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
from bottle import route, run, redirect, request | |
APP_ID = YOUR APP ID | |
APP_SECRET = YOUR APP SECRET | |
SCOPE = YOUR APP SCOPE (e.g. 'photos,groups,offline') | |
REDIRECT_URI = YOUR APP OPEN API HOST (e.g. 'http://localhost:8080/auth') | |
TOKEN = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import lxml.html | |
import pdfkit | |
import markdown | |
base_url = "http://engshop.ru/shekspir-sonet-%i-na_anglieskom/" | |
options = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -•- coding: utf-8 -•- | |
import lxml.html | |
import datetime, time | |
import json | |
import requests | |
import sys | |
base_url = 'http://baikal-ppk.ru/schedule/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/python | |
import os, os.path, shutil | |
os.chdir("data") | |
list_of_dir = [name for name in os.listdir('.') if os.path.isfile(name) or os.path.isdir(name)] | |
for var in list_of_dir: | |
if not os.path.exists(var[0:2].upper()) : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os, sys, wand | |
from wand.image import Image | |
if len(sys.argv) > 1 : _path = sys.argv[1] | |
else : _path = './' | |
os.chdir(_path) |
NewerOlder