Skip to content

Instantly share code, notes, and snippets.

View PedroFarina's full-sized avatar

Pedro Giuliano Farina PedroFarina

  • Apple Developer Academy | Mackenzie
  • São Paulo
View GitHub Profile
@PedroFarina
PedroFarina / Privacy Policy.md
Created May 31, 2021 13:03
Mirtilo Privacy Policy

Privacy Policy

Pedro Giuliano Farina built the Mirtilo app as a Free app. This SERVICE is provided by Pedro Giuliano Farina at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Mirtilo unless otherwise defined in this Privacy Policy.

@PedroFarina
PedroFarina / Privacy Policy.md
Created August 28, 2020 04:44
Beatbots Privacy Policy

Privacy Policy

Pedro Giuliano Farina & Eloísa Falcão built the Beatbots app as a Free app. This SERVICE is provided by Pedro Giuliano Farina & Eloísa Falcão at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Beatbots unless otherwise defined in this Privacy Policy.

Log Data

@PedroFarina
PedroFarina / Privacy Policy.md
Created July 10, 2020 16:09
Eve Privacy Policy

Privacy Policy

Pedro Giuliano Farina, Eloisa Falcao, Felipe Petersen, Luiz Henrique and Julia Santos built the Eve app as a Free app. This SERVICE is provided by Pedro Giuliano Farina at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Eve unless otherwise defined in this Privacy Policy.

@PedroFarina
PedroFarina / AppleMusicJWT.swift
Created May 13, 2020 20:29
Generating a JWT for Apple Music (Valid for 5 months)
import SwiftJWT
let privateKey = """
-----BEGIN PRIVATE KEY-----
MOSDFoMOIFmod7r3osIODfmoisdfnoUDSOAMD6
NOfvf5OmigsGmsodiSDOMfi0+ePWEFmpoasMPs
AMGdsOIDmu+e6rmoSOMFIDSmf25/fpoMADofim
MGI123NInrsFDosmfoISDM
-----END PRIVATE KEY-----
"""
@PedroFarina
PedroFarina / Privacy Policy.md
Last active December 29, 2020 13:37
Swol Privacy Policy

Privacy Policy

Pedro Giuliano Farina built the Swol app as a Free app. This SERVICE is provided by Pedro Giuliano Farina at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Swol unless otherwise defined in this Privacy Policy.

@PedroFarina
PedroFarina / CKQuery.swift
Last active March 31, 2020 21:07
Procurando um aluno na database
let predicado = NSPredicate(format: "Nome == Pedro")
let busca = CKQuery(recordType: "Aluno", predicate: predicado)
dbPublica.perform(busca, inZoneWith: nil) { (records, erro) in
//Este trecho do código rodará assincronamente após receber a resposta do servidor
if let erro = erro {
print("Não foi possível executar essa busca"
}
else {
@PedroFarina
PedroFarina / CKSaving.swift
Last active March 31, 2020 21:07
Salvando um aluno na database pública
dbPublica.save(aluno) { (record, erro) in
//Este trecho do código rodará assincronamente após receber a resposta do servidor
if let erro = erro {
print("Não foi possível salvar")
} else {
print("O aluno foi salvo")
}
}
@PedroFarina
PedroFarina / CKDatabase.swift
Created March 31, 2020 18:09
Referenciando as databases
let container = CKContainer.default()
let dbPublica = container.publicCloudDatabase
let dbCompartilhada = container.sharedCloudDatabase
let dbPrivada = container.privateCloudDatabase
@PedroFarina
PedroFarina / CKRecord.swift
Created March 31, 2020 18:01
Criando um CKRecord
import CloudKit
let aluno = CKRecord(recordType: "Aluno")
aluno.setValue("Pedro", forKey: "Nome")
aluno.setValue("Economia", forKey: "Curso")
print(aluno["Nome"])
@PedroFarina
PedroFarina / GoogleAds.md
Last active March 24, 2020 20:20
Ads Infos

Anúncios em iOS

Conceito

Hoje em dia existem vários tipos de anúncios mobile:

  • Toque para download, que levará o usuário diretamente para uma loja virtual
  • Toque para ligação, que levará o usuário para o telefone
  • Toque para mensagem, que levará o usuário para suas mensagens
  • Textos e banners, que levarão o usuário para uma página qualquer

O mais usado em aplicativos são banners e textos que aparecem de tempos em tempos, podendo mostrar vídeos ou que ficam