Inspired by: http://imgur.com/r1zM60O
- ลงแอพที่ Apple ไม่ให้อยู่บน App Store
- คือแอพที่ใช้คำสั่งที่แอปเปิลไม่อนุญาตให้แอพธรรมดาใช้ (เป็นคำสั่งที่ iOS เอาไว้ใช้ภายใน)
| @@ -55,7 +55,21 @@ | |
| After login, make `client` and `client_in` instance | |
| to communicate with LINE server | |
| """ | |
| - raise Exception("Code is removed because of the request of LINE corporation") | |
| + | |
| + self.transport = THttpClient.THttpClient(self.LINE_HTTP_URL) | |
| + self.transport_in = THttpClient.THttpClient(self.LINE_HTTP_IN_URL) | |
| + | |
| + self.transport.setCustomHeaders(self._headers) |
Inspired by: http://imgur.com/r1zM60O
| import threading | |
| # Based on tornado.ioloop.IOLoop.instance() approach. | |
| # See https://github.com/facebook/tornado | |
| class SingletonMixin(object): | |
| __singleton_lock = threading.Lock() | |
| __singleton_instance = None | |
| @classmethod |
| import math | |
| import Image | |
| import Levenshtein | |
| class BWImageCompare(object): | |
| """Compares two images (b/w).""" | |
| _pixel = 255 |