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
// Write some awesome Swift code, or import libraries like "Foundation", | |
// "Dispatch", or "Glibc" | |
extension Array where Element: Comparable { | |
func lowerBound(in range: CountableRange<Index>, for value: Element) -> Index { | |
return lowerBound(in: range, for: value, by: <) | |
} | |
func lowerBound(for value: Element) -> Index { |
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
// Write some awesome Swift code, or import libraries like "Foundation", | |
// "Dispatch", or "Glibc" | |
// +------------------------+ +------------------------+ | |
// | | | | | |
// | AnimalViewController | - - - - - -> | AnimalViewModel | | |
// | | | | | |
// +------------------------+ +------------------------+ | |
// ^ ^ | |
// | | |
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=utf8 | |
from pyquery import PyQuery as pq | |
import requests | |
class Weibo(object): | |
""""Login Assist for weibo.cn""" |
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=utf8 | |
import base64 | |
import binascii | |
import cookielib | |
import json | |
import os | |
import random | |
import re | |
import rsa | |
import time |
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=utf8 | |
import sys | |
__author__ = 'xohozu' | |
import Queue | |
import threading | |
import traceback | |
from time import sleep |