Skip to content

Instantly share code, notes, and snippets.

Thiago Lioy thiagolioy

Block or report user

Report or block thiagolioy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PaymentDistribuitionTests.swift
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")
View Ex.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let instabugKey = Secrets.instabugKey.secret()
Instabug.start(withToken: instabugKey, invocationEvents: [.shake, .screenshot])
return true
}
View Fastfile.rb
default_platform(:ios)
platform :ios do
desc "Description of what the lane does"
lane :test do
scan(scheme: "SleeveRoll")
end
lane :build do
View MajorDiatonicHarmonySpec.swift
import Foundation
import Quick
import Nimble
@testable import Notes
class MajorDiatonicHarmonySpec: QuickSpec {
override func spec() {
View IonianModeSpec.swift
//
// IonianModeSpec.swift
// Notes
//
// Created by Thiago Lioy on 26/08/17.
// Copyright © 2017 com.tplioy. All rights reserved.
//
import Quick
import Nimble
View RxSwiftViewController.swift
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!
View RegularViewController.swift
import UIKit
class RegularViewController: UIViewController {
@IBOutlet var priceLabel: UILabel!
@IBOutlet var priceSlider: UISlider!
@IBOutlet var unitLabel: UILabel!
@IBOutlet var unitSlider: UISlider!
View file.rb
desc "Bootstrap"
lane :bootstrap do
xcake
sh "cp -r ../schemes/Marvel.xcscheme ../Marvel.xcodeproj/xcshareddata/xcschemes/"
cocoapods
end
View Cakefile.rb
# 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 Apr 18, 2017
Code for presentation, what not to do inside a cell for row
View notTodo.m
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
switch (indexPath.section) {
case 1:
//
break;
case 2:
//
break;
You can’t perform that action at this time.