Skip to content

Instantly share code, notes, and snippets.

View brsanthiago's full-sized avatar
💻
Mobile Developer

Bruno Santiago brsanthiago

💻
Mobile Developer
View GitHub Profile
@brsanthiago
brsanthiago / AddCookiesInterceptor.java
Created July 22, 2020 01:32 — forked from nikhiljha/AddCookiesInterceptor.java
Retrofit2/OkHttp3 Cookies (Drag and Drop, One Size Fits 99%)
// Original written by tsuharesu
// Adapted to create a "drop it in and watch it work" approach by Nikhil Jha.
// Just add your package statement and drop it in the folder with all your other classes.
import android.content.Context;
import android.preference.PreferenceManager;
import android.util.Log;
import java.io.IOException;
import java.util.HashSet;
@brsanthiago
brsanthiago / CustomBottomNavigationView.java
Created November 27, 2018 21:40 — forked from MensObscura/CustomBottomNavigationView.java
BottomNavigationView with shifModeDisable and Badge
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.design.internal.BottomNavigationItemView;
import android.support.design.internal.BottomNavigationMenuView;
import android.support.design.widget.BottomNavigationView;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseArray;
import android.view.Gravity;
@brsanthiago
brsanthiago / Fastfile
Created October 24, 2018 21:39 — forked from polbins/Fastfile
Fastlane script for Uploading to Slack and Play Store Alpha
default_platform :android
platform :android do
before_all do
ENV["SLACK_URL"] = "https://hooks.slack.com/services/ABC/123/XYZ"
end
######################### PUBLIC LANES #########################
desc "Deploy a new Prod APK version to Play Store Alpha"
@brsanthiago
brsanthiago / README.md
Created October 12, 2018 13:04 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

Flutter Resources
Documentation: https://docs.flutter.io/
Github: https://github.com/flutter/flutter
StackOverflow: https://stackoverflow.com/questions/tagged/flutter
Gitter: https://gitter.im/flutter/flutter
Effective Dart Guide: https://www.dartlang.org/guides/language/effective-dart
Dart Tips: https://www.dartlang.org/resources/dart-tips
Flutter FAQ: https://flutter.io/faq/
Flutter Rendering: https://www.youtube.com/watch?v=UUfXWzp0-DU
Flutter Engine: https://github.com/flutter/engine/wiki
@brsanthiago
brsanthiago / FileChooserActivity.java
Created November 2, 2017 16:45 — forked from pamobo0609/FileChooserActivity.java
Code capable of opening a file chooser from a Webview in Android
public class AgregarItemActivity extends AppCompatActivity {
Usuario user;
boolean listenerStatus;
String sessionID;
String eventoID;
String agregarItemURL;
String agregarImagenesURL;
String item;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
public class FirebaseInstanceToken extends FirebaseInstanceIdService {
@Override
public void onTokenRefresh() {
String token = FirebaseInstanceId.getInstance().getToken();
TokenEvent tokenEvent = new TokenEvent(token);
//TODO Consumir sua API para enviar o novo token do dispositivo...
@brsanthiago
brsanthiago / LoginController.java
Last active April 18, 2016 23:47
Source Code Login Screen with JavaFX
package com.wordpress.pixellcode.controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.application.Platform;
import javafx.beans.binding.BooleanBinding;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.Hyperlink;