Skip to content

Instantly share code, notes, and snippets.

Philip Borbon philipborbon

Block or report user

Report or block philipborbon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
philipborbon / RetrofitSingleton.kt
Created May 20, 2019
Retrofit Singleton Factory
View RetrofitSingleton.kt
companion object Factory {
private var retrofit : Retrofit? = null
fun getInstance(baseUrl: String, tokenStorage: TokenStorage): FireResponseService? {
retrofit = retrofit ?: synchronized(this) {
retrofit ?: buildRetrofit(baseUrl, tokenStorage)
philipborbon /
Created Mar 22, 2019 — forked from rodrigohenriques/
Used to make your EditText a better option than Spinners
public class ClickToSelectEditText<T extends Listable> extends AppCompactEditText {
List<T> mItems;
String[] mListableItems;
CharSequence mHint;
OnItemSelectedListener<T> onItemSelectedListener;
public ClickToSelectEditText(Context context) {
philipborbon / HTTPStatusCodes.swift
Created Dec 4, 2018 — forked from brennanMKE/HTTPStatusCodes.swift
Swift Enums for HTTP Status Codes
View HTTPStatusCodes.swift
enum HTTPStatusCodes: Int {
// 100 Informational
case Continue = 100
case SwitchingProtocols
case Processing
// 200 Success
case OK = 200
case Created
case Accepted
case NonAuthoritativeInformation
philipborbon / .gitconfig
Last active Sep 26, 2018
Full Sample Git Config For Windows
View .gitconfig
name = Philip Borbon
email =
prompt = false
keepBackup = false
keepTemporaries = false
You can’t perform that action at this time.