Skip to content

Instantly share code, notes, and snippets.

View EzimetYusup's full-sized avatar
🏠
Working from home

EzimetYusup EzimetYusup

🏠
Working from home
View GitHub Profile
@EzimetYusup
EzimetYusup / index.js
Last active May 20, 2022 17:29
Testing
// 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,
@EzimetYusup
EzimetYusup / pool.txt
Created September 6, 2017 02:50
mining config
#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
@EzimetYusup
EzimetYusup / version.swift
Created November 4, 2016 15:17
get ios app build and version info
let build = (NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleVersion") as! String)
let version = (NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as! String)
@EzimetYusup
EzimetYusup / range.swift
Created October 12, 2016 19:41
extension NSMutableAttributedString for to find the range of String
extension NSMutableAttributedString {
public func getRangeOfString(textToFind:String)->NSRange{
let foundRange = self.mutableString.rangeOfString(textToFind)
return foundRange
}
}
@EzimetYusup
EzimetYusup / delegate.swift
Last active October 13, 2016 13:46
split one delegate to two in swift
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)