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 UIKit | |
import ObjectiveC | |
class ViewController: UICollectionViewController { | |
let scrollViewDelegate = MyScrollViewDelegate() | |
override func respondsToSelector(aSelector: Selector) -> Bool { | |
if protocol_getMethodDescription(UIScrollViewDelegate.self, aSelector, false, true).types != nil || protocol_getMethodDescription(UIScrollViewDelegate.self, aSelector, true, true).types != nil { | |
return scrollViewDelegate.respondsToSelector(aSelector) |
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
extension NSMutableAttributedString { | |
public func getRangeOfString(textToFind:String)->NSRange{ | |
let foundRange = self.mutableString.rangeOfString(textToFind) | |
return foundRange | |
} | |
} |
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
let build = (NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleVersion") as! String) | |
let version = (NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as! String) | |
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
#ubiq add 0x1Ed2fc0b5f5C8295C976E62EFA804a110Dd37a16 | |
#eth add 1826e2c11cc7468ea6cbe0a439a42e63d6172104 | |
#pool1 stratum+tcp://us.ubiq.minerpool.net:8002 | |
#pool2 ubiq.hodlpool.com:8009 | |
maxgputemp 85 | |
stratumproxy enabled | |
proxywallet 0x1Ed2fc0b5f5C8295C976E62EFA804a110Dd37a16 | |
proxypool1 stratum+tcp://us.ubiq.minerpool.net:8002 | |
proxypool2 ubiq.hodlpool.com:8009 |
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
// Deployments API example | |
// See: https://developer.github.com/v3/repos/deployments/ to learn more | |
/** | |
* This is the main entrypoint to your Probot app | |
* @param {import('probot').Probot} app | |
*/ | |
const addPRToColumn = async (context, column_id, pr_id) => { | |
const res = await context.octokit.projects.createCard({ | |
column_id: column_id, |