Skip to content

Instantly share code, notes, and snippets.

View thiagolioy's full-sized avatar

Thiago Lioy thiagolioy

View GitHub Profile
func testShouldCalculatePaymentDistributionMoreComplicatedEventMohaLair() {
let moha = Player(name: "Moha")
let kaique = Player(name: "Kaique")
let lioy = Player(name: "Lioy")
let jonas = Player(name: "Jonas")
let lima = Player(name: "Lima")
let igarashi = Player(name: "Igarashi")
let saba = Player(name: "Saba")
let paiLima = Player(name: "PaiLima")
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let instabugKey = Secrets.instabugKey.secret()
Instabug.start(withToken: instabugKey, invocationEvents: [.shake, .screenshot])
return true
}
@thiagolioy
thiagolioy / Fastfile.rb
Created February 8, 2020 14:12
Fastfile Example
default_platform(:ios)
platform :ios do
desc "Description of what the lane does"
lane :test do
scan(scheme: "SleeveRoll")
end
lane :build do
import Foundation
import Quick
import Nimble
@testable import Notes
class MajorDiatonicHarmonySpec: QuickSpec {
override func spec() {
//
// IonianModeSpec.swift
// Notes
//
// Created by Thiago Lioy on 26/08/17.
// Copyright © 2017 com.tplioy. All rights reserved.
//
import Quick
import Nimble
import UIKit
import RxSwift
import RxCocoa
class RxSwiftViewController: UIViewController {
@IBOutlet var priceLabel: UILabel!
@IBOutlet var priceSlider: UISlider!
@IBOutlet var unitLabel: UILabel!
@IBOutlet var unitSlider: UISlider!
import UIKit
class RegularViewController: UIViewController {
@IBOutlet var priceLabel: UILabel!
@IBOutlet var priceSlider: UISlider!
@IBOutlet var unitLabel: UILabel!
@IBOutlet var unitSlider: UISlider!
desc "Bootstrap"
lane :bootstrap do
xcake
sh "cp -r ../schemes/Marvel.xcscheme ../Marvel.xcodeproj/xcshareddata/xcschemes/"
cocoapods
end
# just helper variables to use these values in a consistent way across whole file
currentSwiftVersion = "3.1.0"
# Change this to set a different Project file name
project.name = "Marvel"
@thiagolioy
thiagolioy / notTodo.m
Created April 18, 2017 16:31
Code for presentation, what not to do inside a cell for row
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
switch (indexPath.section) {
case 1:
//
break;
case 2:
//
break;