Skip to content

Instantly share code, notes, and snippets.

View renanboni's full-sized avatar

Renan Boni renanboni

  • Berlin, Germany
View GitHub Profile
class App: Application() {
@Inject
lateinit var analytics: Analytics
lateinit var appComponent: AppComponent
override fun onCreate() {
super.onCreate()
public int max(int[] input) {
int max = input[0];
for(int i = 1; i < input.length - 1; i++){
if(input[i] > max) {
max = input[i];
}
}
return max;
public int max(int[] input) {
int max = input[0];
for(int i = 1; i < input.length - 1; i++){
if(input[i] > max) {
max = input[i];
}
}
return max;
public int getFirstElement(int[] numbers) {
return numbers[0];
}
boolean search(int numbers[], int x) {
for (int i = 0; i < numbers.length; i++)
if (numbers[i] == x) {
return true;
}
return false;
}
public void printArray(int array[][]) {
for (int i = 0; i < array.length; i++) {
for (int j = 0; j < array[i].length; j++) {
System.out.print(array[i][j] + " ");
}
System.out.println();
}
}
@renanboni
renanboni / chat.kt
Created October 3, 2019 13:02
chat activity
package br.com.neon.helpcenter.ui.chat
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.widget.EditText
import android.widget.ImageView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
name: Android Feature Branch CI
on:
push:
branches:
- '*'
- '!master'
- '!release*'
jobs:
name: Android Pull Request & Master CI
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
Handler(Looper.myLooper()!!).postDelayed({
// codigo a ser executado depois de 1 segundo (1000ms)
}, 1000)