Skip to content

Instantly share code, notes, and snippets.

@Shu-Ji
Shu-Ji / README.md
Created July 2, 2018 09:17 — forked from mottosso/README.md
QML Reloading in PyQt5

Usage

git clone https://gist.github.com/fa01c80080363df3433d.git qmlreload
cd qmlreload
python main.py

Edit either SceneGraphEditor.qml or Viewport.qml and then hover it and hit F5 to reload.

@Shu-Ji
Shu-Ji / client.py
Created April 15, 2016 06:59 — forked from ajdavis/client.py
大数据下载tornado - Big download demo with Tornado 3.0.1 and pycurl.
from tornado.httpclient import HTTPRequest, AsyncHTTPClient
import tornado.ioloop
import tornado.web
from tornado import gen
GB = 1024 * 1024 * 1024
total_downloaded = 0
def streaming_callback(chunk):
@Shu-Ji
Shu-Ji / gist:aa723f0e1bd69897b8ae
Created November 6, 2015 08:01 — forked from simonw/gist:92481
Compile nginx standalone without root access
# Compile nginx standalone without root access
mkdir ~/installed
mkdir ~/installed/nginx
mkdir ~/src
cd ~/src
# PCRE dependency - we'll compile against this statically
wget http://kent.dl.sourceforge.net/sourceforge/pcre/pcre-7.8.tar.gz
tar -xzvf pcre-7.8.tar.gz