This file contains 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,sys | |
import time | |
import random | |
import numpy as np | |
from sklearn.svm import SVR,SVC | |
This file contains 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/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Sep 20 00:40:18 2017 | |
@author: qzane | |
""" | |
import requests | |
from lxml import etree |
This file contains 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
# refer: https://github.com/TimoSaemann/ENet/blob/master/prototxts/enet_train_encoder.prototxt | |
# graph: http://ethereon.github.io/netscope/#/gist/ccac19b9c4f5cb39d76495e32e964bdf | |
name: "ENet" | |
layer { | |
name: "data" | |
type: "DenseImageData" | |
top: "data" | |
top: "label" | |
dense_image_data_param { | |
source: "ENet/dataset/train_fine_2columns.txt" |
This file contains 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
# refer: https://github.com/hszhao/PSPNet/blob/master/evaluation/prototxt/pspnet101_VOC2012_473.prototxt | |
# graph: http://ethereon.github.io/netscope/#/gist/748ef1d9193e506c998ea9a3ec4288c7 | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 473 | |
input_dim: 473 | |
layer { | |
name: "conv1_1_3x3_s2" |
This file contains 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 -*- | |
""" | |
Created on Sun Jun 18 21:34:22 2017 | |
@author: qzane | |
""" | |
from PIL import Image | |
import pyautogui as auto | |
from time import sleep | |
import os |
This file contains 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 | |
''' download ebooks from http://www.bookbao8.com/ ''' | |
import requests | |
from lxml import etree | |
import sys | |
from multiprocessing import Pool | |
URL = r'http://www.bookbao8.com/views/200910/06/id_XMjg4NDg=_{}.html' | |
URLs = [URL.format(i) for i in range(1,1+23)] |
This file contains 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
#update Jan-02-2019: | |
#to use with stardict: | |
# 1. sudo apt-get remove stardict-plugin-espeak stardict-plugin-festival | |
# 2. Preferences -> Dictionary -> Sound -> Use TTS program -> Commandline: /PYTHON_PATH/python /SCIRPY_PATH/speaker.py %s & | |
#todo: combine play_win_wav & play_win | |
#todo: combine checkRealVoice & checkVoice | |
#----speaker.py by me@qzane.com------# | |
#----2016-08-31----------------------# | |
import sys |
This file contains 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 pyautogui | |
import pyhooked | |
from pyhooked import Hook, MouseEvent | |
import sys,os | |
import time | |
import subprocess | |
OLD_LEFT = 0.0 | |
from tkinter import Tk | |
TK = Tk() |
NewerOlder