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 { readFileSync, writeFileSync } from 'fs'; | |
function readGithubProjectTSV(path: string) { | |
const fileContent = readFileSync(path, { encoding: 'utf8' }); | |
const rows = fileContent.split('\n'); | |
rows.shift(); | |
rows.sort(); |
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
// | |
// Created by Douglas Mendes on 2019-10-08. | |
// Copyright (c) 2019 Douglas Mendes. All rights reserved. | |
// | |
import Foundation | |
func weakify<TargetType: AnyObject>(_ target: TargetType, | |
_ targetMethod: @escaping (TargetType) -> () -> Void) -> (() -> Void) { | |
return { [weak target] in |
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 Crashlytics | |
extension Crashlytics: LogRecorder { | |
func record(log: String, reason _: String? = nil) { | |
CLSLogv("%@", getVaList([log])) | |
} | |
func record(errorString: String, reason: String? = nil) { | |
recordCustomExceptionName(errorString, reason: reason, frameArray: []) | |
} |
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 Firebase | |
final class AppUpdateCheckerFactory { | |
static func make(debugMode: Bool = false) -> AppUpdateChecker { | |
if debugMode { | |
activateDebugMode() | |
} | |
return AppUpdateChecker(currentAppVersion: Environment.appVersion, | |
remoteConfig: RemoteConfig.remoteConfig()) |
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
Installing CYGWIN with SSH | |
1) Download cygwin setup.exe from http://www.cygwin.com | |
- Execute setup.exe | |
- Install from internet | |
- Root directory: `c:\cygwin` + all users | |
- Local package directory: use default value | |
- Select a mirror to download files from | |
- Select these packages: | |
- editors > xemacs 21.4.22-1 | |
- net > openssh 6.1-p |
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
// | |
// Created by Douglas Mendes on 4/18/18. | |
// Copyright (c) 2018 Douglas Mendes. All rights reserved. | |
// | |
import UIKit | |
extension UIView { | |
@discardableResult | |
func startAnchor() -> Self { |
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
// | |
// ViewController.swift | |
// ItemSelector | |
// | |
// Created by douglas.barreto on 3/26/18. | |
// Copyright © 2018 Douglas Mendes Barreto. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// HomeViewControllerTests.swift | |
// DitMoi | |
// | |
// Created by Douglas Barreto on 10/01/18. | |
// Copyright © 2018 Douglas Mendes. All rights reserved. | |
// | |
import UIKit |
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
<code_scheme name="Douglas Mendes Barreto" version="173"> | |
<Objective-C-extensions> | |
<file> | |
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Import" /> | |
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Macro" /> | |
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Typedef" /> | |
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Enum" /> | |
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Constant" /> | |
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Global" /> | |
<option name="com.jetbrains.cidr.lang.util.OCDeclarationKind" value="Struct" /> |
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
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
protocol ListGroceriesPresenter { | |
func show(groceries: [Int]) | |
func show(grocery: Int) | |
func showEmptyView() | |
} |
NewerOlder