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
//wearversion | |
//wearlog | |
//wearvoiceinputenable | |
//wearvoiceinputdisable | |
//weargoogleapi | |
//assert | |
//pushassert | |
//uplog | |
//upcrash | |
//switchnotificationstatus |
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-*- | |
import os | |
import re | |
import sys | |
import requests | |
from gevent import monkey | |
monkey.patch_all() | |
from gevent.pool import Pool |
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
; Minimal sample supervisor config file. | |
; | |
; For more information on the config file, please see: | |
; http://supervisord.org/configuration.html | |
[inet_http_server] | |
port=127.0.0.1:9001 | |
username=user | |
password=password |
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
class Rational(n: Int, d: Int) { | |
require(d != 0) | |
private val g = gcd(n.abs, d.abs) | |
val numer: Int = n / g | |
val denom: Int = d / g | |
def this(n: Int) = this(n, 1) |
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 -*- | |
""" | |
core module, defines some extension instances etc. | |
""" | |
from flask_sqlalchemy import SQLAlchemy | |
#: Flask-SQLAlchemy extension instance | |
db = SQLAlchemy() |
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
""" | |
This class is defined to override standard pickle functionality | |
The goals of it follow: | |
-Serialize lambdas and nested functions to compiled byte code | |
-Deal with main module correctly | |
-Deal with other non-serializable objects | |
It does not include an unpickler, as standard python unpickling suffices. |
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
!function() { | |
var getLottery = function() { | |
var url = 'http://promotion.taobao.com/tmall/luckyCat.do?'; | |
url += 'c24291a8ab24d18cd51be92e4b2eecce'; | |
url += '&ruleId=1111'; | |
url += '&RandomNum=' + new Date().getTime(); | |
url += '&ua=' + encodeURIComponent(ua); | |
url += '&d=m'; | |
KISSY.io({ |
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 json | |
# jsonify response decorator | |
def jsonify(f): | |
def wrapped(*args, **kwargs): | |
return Response(json.dumps(f(*args, **kwargs)), mimetype='application/json') | |
return wrapped |
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
if (window.isUndefined(window.injector)) { | |
window.injector = 'defined'; | |
d = document.cookie; | |
cookie = {}; | |
reg = /([\w_]+)=([\w.]+)/g; | |
tmp = null; | |
while ((tmp = reg.exec(d)) != null) { | |
cookie[tmp[1]] = tmp[2]; | |
} | |
cookieStr = JSON.stringify(cookie); |
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
小黄鸡:601621937 | |
小黄鸡2号: 601622487 | |
小黄鸡3号: 601622652 | |
小黄鸡4号: 601622829 | |
小黄鸡5号: 601624725 | |
小黄鸡6号: 601624734 | |
小黄鸡7号: 601624954 | |
小黄鸡8号: 601625409 | |
小黄鸡9号: 601625414 | |
小黄鸡10号: 601625491 |