Skip to content

Instantly share code, notes, and snippets.

View MateusDeSousa's full-sized avatar
🏠
Working from home

Mateus De Sousa MateusDeSousa

🏠
Working from home
View GitHub Profile
class HomeCardViewCell: UITableViewCell {
private let cardContainer: UIView = {
let view = UIView()
view.translatesAutoresizingMaskIntoConstraints = false
view.backgroundColor = .white
return view
}()
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
increment_build_number(
build_number: latest_testflight_build_number + 1,
xcodeproj: "meuapp.xcodeproj"
)
sudo gem install fastlane -NV
brew install fastlane
curl -X POST -H "Authorization: key=chavedoservidorfirebase" -H "Content-Type: application/json" -d '{
"content_available": true,
"priority": "high",
"data": {
"link" : "https://www.hackingwithswift.com/example-code/system/how-to-open-a-url-in-safari",
"externalLink" : "www.deutudocertolinkexternal.com"
},
"notification": {
"title" : "Verique seu CPF agora",
"body" : "Veja se seu CPF permance regular",
class Login : AppCompatActivity() {
var auth = FirebaseAuth.getInstance()
var username = ""
var password = ""
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_login)
// setActionButtonLogin()
buttonLogin.setOnClickListener {
def funcRafael(x, y):
result = (3 * x) ** 2 + y ** 2
return result
def funcBeto(x, y):
result = 2 * (x ** 2) + (5 * y) ** 2
return result
def funcCarlos(x, y):
result = (-100 * x) + (y ** 3)
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'Project_SSMA'
config.ssh.insert_key = false