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
| import SwiftUI | |
| extension CollectionView { | |
| typealias UIKitCollectionView = CollectionViewWithDataSource<SectionIdentifierType, ItemIdentifierType> | |
| typealias DataSource = UICollectionViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> | |
| typealias Snapshot = NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType> | |
| typealias UpdateCompletion = () -> Void | |
| } | |
| struct CollectionView<SectionIdentifierType, ItemIdentifierType> |
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
| package main | |
| import ( | |
| "bufio" | |
| "log" | |
| "os" | |
| "regexp" | |
| "strconv" | |
| "unicode/utf8" | |
| ) |
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
| import Foundation | |
| import UIKit | |
| final class Stack: UIView { | |
| private let stackView: UIStackView = { | |
| let stack = UIStackView() | |
| stack.axis = .vertical | |
| stack.distribution = .fill | |
| stack.alignment = .fill | |
| stack.translatesAutoresizingMaskIntoConstraints = false |
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
| #!/bin/bash | |
| current_branch=`git branch | grep '*' | sed 's/* //'` | |
| green=`tput setaf 2` | |
| reset=`tput sgr0` | |
| red=`tput setaf 1` | |
| yellow='\033[1;33m' | |
| echo "\nVerificando seu commit no branch ${green} $current_branch ${reset} (: Aguarde...." | |
| echo "\n${red}Formatando o código.........${reset}\n" |
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
| extension UIView { | |
| private enum ShimmerViews: Int { | |
| case backgroundView = 1234 | |
| case shimmerView = 123 | |
| } | |
| func startShimmer() { | |
| func createUIView(withTag tag: ShimmerViews, backgroundColor color: UIColor) -> UIView { | |
| let view = UIView(frame: CGRect(x: 0, y: 0, width: frame.width, height: frame.height)) | |
| view.tag = tag.rawValue |
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
| { | |
| "estados": [ | |
| { | |
| "sigla": "AC", | |
| "nome": "Acre", | |
| "cidades": [ | |
| "Acrelândia", | |
| "Assis Brasil", | |
| "Brasiléia", | |
| "Bujari", |