A simple guide to install PyQt5 on Mac OS X 10.11 and use python 3.5 on a virtualenv.
- xcode latest
- python 3.5.1
- Qt libraries 5.6.0
scriptencoding utf-8 | |
let g:spacevim_enable_debug = 1 | |
let g:spacevim_realtime_leader_guide = 1 | |
call SpaceVim#layers#load('incsearch') | |
call SpaceVim#layers#load('lang#c') | |
call SpaceVim#layers#load('lang#elixir') | |
call SpaceVim#layers#load('lang#go') | |
call SpaceVim#layers#load('lang#haskell') | |
call SpaceVim#layers#load('lang#java') |
#!/usr/bin/env python | |
#coding=utf-8 | |
# | |
# Generate a list of dnsmasq rules with ipset for gfwlist | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules | |
import urllib2 | |
import re |
{"墨鏡":{"emoji":["😎"]}, | |
"泰國":{"emoji":["🇹🇭"]}, | |
"南苏丹共和国":{"emoji":["🇸🇸"]}, | |
"让利":{"emoji":["🈹️"]}, | |
"男性":{"emoji":["🚹"]}, | |
"向日葵":{"emoji":["🌻"]}, | |
"營":{"emoji":["🈺️"]}, | |
"斯里兰卡":{"emoji":["🇱🇰"]}, | |
"兔子脸":{"emoji":["🐰"]}, | |
"虫子":{"emoji":["🐛","🐜"]}, |
import time | |
import math | |
import random | |
import sys | |
# Retry decorator with exponential backoff | |
def retry(tries, delay=3, backoff=2): | |
'''Retries a function or method until it returns True. | |
delay sets the initial delay in seconds, and backoff sets the factor by which |