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
philipborbon / RetrofitSingleton.kt
Created May 20, 2019
Retrofit Singleton Factory
View RetrofitSingleton.kt
companion object Factory {
@Volatile
private var retrofit : Retrofit? = null
@Synchronized
fun getInstance(baseUrl: String, tokenStorage: TokenStorage): FireResponseService? {
retrofit = retrofit ?: synchronized(this) {
retrofit ?: buildRetrofit(baseUrl, tokenStorage)
}
@philipborbon
philipborbon / ClickToSelectEditText.java
Created Mar 22, 2019 — forked from rodrigohenriques/ClickToSelectEditText.java
Used to make your EditText a better option than Spinners
View ClickToSelectEditText.java
public class ClickToSelectEditText<T extends Listable> extends AppCompactEditText {
List<T> mItems;
String[] mListableItems;
CharSequence mHint;
OnItemSelectedListener<T> onItemSelectedListener;
public ClickToSelectEditText(Context context) {
super(context);
@philipborbon
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
philipborbon / .gitconfig
Last active Sep 26, 2018
Full Sample Git Config For Windows
View .gitconfig
[user]
name = Philip Borbon
email = philip@crescit.com
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
You can’t perform that action at this time.