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 XCTest | |
// Credits: https://github.com/pointfreeco/swift-composable-architecture | |
//swiftlint:disable empty_string force_cast force_unwrapping unused_closure_parameter function_body_length | |
class MyCustomTestCase: XCTestCase { | |
func assertEqual<T: Equatable>( | |
expected: T, | |
actual: T | |
) { |
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
infix operator ..: AdditionPrecedence | |
infix operator <-: MultiplicationPrecedence | |
struct Predicate<Element> { | |
let code: (Element) -> Element | |
func runCode(for element: Element) -> Element { | |
return code(element) | |
} | |
} |
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 | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
func application(_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
RemoteConfigModule().setup(withOptions: FirebaseConfigOptions()) | |
return true | |
} |
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
#!/bin/sh | |
sudo apt update && sudo apt upgrade -y | |
sudo apt dist-upgrade -y | |
# PPA | |
sudo apt-get install software-properties-common | |
# TLP to save battery and prevent overheating | |
sudo apt install tlp tlp-rdw | |
tlp start |
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
{ | |
"ongs" : [ { | |
"address" : "Rua Augusto Ribeiro Filho - 20 -, Campo Belo, São Paulo, SP", | |
"phone" : "11 5021 3858", | |
"name" : "BRAZILIAN ADVENTURE SOCIETY" | |
}, { | |
"address" : "R. MAJOR SYLVIO MAGALHAES PADILHA - 5200 - ED. PHILADELPHIA - 3º ANDAR, MORUMBI, São Paulo, SP", | |
"phone" : "11 3759 8000", | |
"name" : "BRAZILIAN INSTITUTE OF TECHNOLOGY AND SOFTWARE - BITS" | |
}, { |
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
from PIL import Image | |
import pytesseract | |
print(pytesseract.image_to_string(Image.open('teste.png'))) |