Skip to content

Instantly share code, notes, and snippets.

View lfarah's full-sized avatar

Lucas Farah lfarah

  • Bipa
  • São Paulo
View GitHub Profile
@lfarah
lfarah / AwesomeiOSWeekly23.md
Last active April 24, 2018 11:35
AwesomeiOSWeekly23

AwesomeiOS.Weekly [23]

Links of the week

The first featured link is "Do the right way with Storyboard" by Michael Tran. Storyboards are really present in my iOS Developments and as they grow, they get slower and can start breaking things, especially with @IBDesignables. Michael gives out some rules and tips to make our Storyboards slim and performant.

The second featured link is "Swift, Plist and Two Smoking Scripts", by Artem Novichkov. I'm a freelance iOS developer, which means I'm always making apps for other people, which makes it really hard when there's a "Missing Info.plist key" error and the only way Apple tells us about it is through email, which I'll figure it out after hours of looking into why this build is disappearing because I don't have access to the email. My problems are over thanks to Artem and

@lfarah
lfarah / FTDWorkshop4-1.md
Last active April 25, 2018 13:22
Palestra sobre Provisionamento

Palestrante

  • Salu, programador PHP desde 2012, vegano, rockeiro, Linuxer

O quê é provisionamento?

  • Provisionamento é um ambiente para executar uma aplicação, garantindo as configurações necessárias para pessoas manterem e reproduzirem o ambiente
  • Virtualização: garante os requisitos de software e hardware
  • Ambiente de desenvolvimento vs. produção

O quê provisionamento resolve?

Levantamento de requisitos
@lfarah
lfarah / FTDWorkshop4-2.md
Last active April 25, 2018 19:37
Palestra sobre design thinking

Design thinking

  • Pensamento centrado no ser humano é a inovação
  • Foco no design para alcançar inovação

Como

  • Equipe multidiciplinar
  • Trazer o usuário para o processo de criação
  • Não ter medo de errar durante o processo (errar antes do que errar na hora da entrega

Tim Brown

//
// MapViewController.swift
// HackathonGlobo
//
// Created by Txai Wieser on 28/04/18.
// Copyright © 2018 Txai Wieser. All rights reserved.
//
import Foundation
import UIKit
extension ViewController: AVCaptureVideoDataOutputSampleBufferDelegate {
func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!)
{
//let filter:CIFilter? = CIFilter(name: "CISourceOverCompositing")
let pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer)
let cameraImage = CIImage(cvPixelBuffer: pixelBuffer!)
/*
See LICENSE folder for this sample’s licensing information.
Abstract:
Wrapper SceneKit node for virtual objects placed into the AR scene.
*/
import Foundation
import SceneKit
import ARKit
extension UIColor {
func lighter(by percentage:CGFloat=30.0) -> UIColor? {
return self.adjust(by: abs(percentage) )
}
func darker(by percentage:CGFloat=30.0) -> UIColor? {
return self.adjust(by: -1 * abs(percentage) )
}
@lfarah
lfarah / ProblemasServidorPEL.md
Last active May 15, 2018 18:06
ProblemasServidorPEL

Problemas do Servidor

Listas

Endpoint: v1/user/1/lists/3 - DELETE

BUG ao deletar uma lista que tem livros

Endpoint: v1/user/1/lists - POST

Servidor da erro ao criar listas com o mesmo nome para usuários diferentes

Explorar

@lfarah
lfarah / AwesomeiOSWeekly24.md
Last active May 17, 2018 21:04
AwesomeiOSWeekly24

AwesomeiOS.Weekly [24]

Links of the week

The first featured link is "Touch ID and Face ID on iOS" by Michael Brown. In my last 2 freelance projects I've been implementing TouchID and FaceID and it is so easy! Michael shows us his abstraction called BiometricAuth, making the implementation nicer and easier to track all states of authentication.

The second featured link is "Best iOS hacks from Twitter: March & April Edition", by Lisa Dziuba. Our friends at Flawless release this series every month and there's always something new to learn. My favorite one is how to open a file in a certain line using the Quick Open dialog.

Wanna see your library here? [Send us an email!](mailto:lucas.fara

@lfarah
lfarah / helloWorld.md
Created August 12, 2018 21:22
asdasd

Testing Twig

  • It's
  • Really cool!