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
final public class AsyncQueueDispatcher: Dispatcher { | |
private let queue: DispatchQueue | |
public init(queue: DispatchQueue) { | |
self.queue = queue | |
} | |
public func dispatch(_ work: @escaping ()->Void) { | |
queue.async(execute: work) | |
} |
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
# Paste inside '.bash_aliases' file in your root directory | |
# Parameters: | |
# $1 = New feature branch name (without 'feat/' prefix) | |
# $2 = Base branch to start the feature branch from (optional) | |
function feature_branch() { | |
current_branch="" | |
if [ -z "$2" ] | |
then |
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
// | |
// UIView+AdvancedAnchor.swift | |
// | |
// Created by Ammar Altahhan on 06/08/2019. | |
// Copyright © 2019 Ammar Altahhan. All rights reserved. | |
// | |
// Github: https://github.com/ATahhan | |
// Twitter: https://twitter.com/atahhan_ | |
// |