Skip to content

Instantly share code, notes, and snippets.

View nbarnold01's full-sized avatar

Nathan Arnold nbarnold01

View GitHub Profile
@orkoden
orkoden / HackerrankObjectiveCBoilerplate.m
Last active July 26, 2020 01:50
Hackerrank.com Boilerplate template for reading from STDIN and writing to STDOUT for Objective-C
#import <Foundation/Foundation.h>
@interface HRSTDIOReadWriter : NSObject
@end
@implementation HRSTDIOReadWriter
+(NSString*) readFromSTDIN
{
NSFileHandle *kbd = [NSFileHandle fileHandleWithStandardInput];
@rodrigohenriques
rodrigohenriques / ClickToSelectEditText.java
Last active February 12, 2023 07:44
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) {
super(context);