Skip to content

Instantly share code, notes, and snippets.

View hosseinzoda's full-sized avatar

Hossein Zoda hosseinzoda

View GitHub Profile
@hosseinzoda
hosseinzoda / imagereplace-qt.py
Last active April 17, 2019 16:00 — forked from willwade/imagereplace-qt.py
Grid3 Image Replacer. Take a file like this one: https://www.dropbox.com/s/ik1u0nzp7n6zfu6/Original.gridset?dl=0 - and find some new images to replace in the zip file
# this reads grid 3 files. Finds image in one grid page and same one in another and replaces it with a new one
import zipfile
from google_images_download import google_images_download
import re
import os, shutil
from glob import glob
from sys import exit, argv, exc_info, stderr
from PyQt5.QtCore import pyqtSignal, Qt
@hosseinzoda
hosseinzoda / serve_http.py
Created April 12, 2019 17:39 — forked from pankajp/serve_http.py
Simple Python HTTP Server with multi-threading and partial-content support
#! /usr/bin/env python
# Standard library imports.
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import SimpleHTTPServer
import sys
import json
import os
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext,