This file contains hidden or 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
| #!/usr/bin/env python | |
| import os | |
| import re | |
| import threading | |
| import time | |
| import subprocess | |
| from os.path import splitext, expanduser, normpath | |
| import click |
This file contains hidden or 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
| /* | |
| Credits | |
| ======= | |
| https://cocoacasts.com/from-hex-to-uicolor-and-back-in-swift | |
| Usage | |
| =========== | |
| let green = UIColor(hex: "12FF10") | |
| let greenWithAlpha = UIColor(hex: "12FF10AC") |
This file contains hidden or 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
| //Ref - http://hastebin.com/yemoninaku.m | |
| @implementation AFHTTPSessionManager (TMLHeaderFields) | |
| - (NSURLSessionDataTask *)GET:(NSString *)URLString | |
| parameters:(id)parameters | |
| headerFields:(NSDictionary *)headerFields | |
| success:(void (^)(NSURLSessionDataTask *task, id responseObject))success | |
| failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure | |
| { |