This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| # coding:utf-8 | |
| from django.http import HttpResponse | |
| import xml.etree.ElementTree as ET | |
| import hashlib | |
| TOKEN = "hahaha" | |
| def wechat(request): | |
| if request.method == 'GET': |
| # -*- coding:utf-8 -*- | |
| import requests | |
| from time import sleep | |
| from threading import Thread | |
| UPDATE_INTERVAL = 0.01 | |
| class URLThread(Thread): | |
| def __init__(self, url, timeout=10, allow_redirects=True): | |
| super(URLThread, self).__init__() |