Skip to content

Instantly share code, notes, and snippets.

View TheFinestArtist's full-sized avatar
🔥
Reigniting

Leonardo Kim TheFinestArtist

🔥
Reigniting
View GitHub Profile
@TheFinestArtist
TheFinestArtist / DateHelper.java
Created July 25, 2015 14:31
DateHelper.java
import android.text.format.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
/**
* DateHelper
*
@TheFinestArtist
TheFinestArtist / IntArrayHelper.java
Created July 25, 2015 14:31
IntArrayHelper.java
/**
* IntArrayHelper
*
* Created by TheFinestArtist
*/
public class IntArrayHelper {
public static boolean contains(int[] array, int value) {
if (array == null)
return false;
@TheFinestArtist
TheFinestArtist / SparseArrayHelper.java
Created July 25, 2015 14:32
SparseArrayHelper.java
import android.util.SparseArray;
import java.util.ArrayList;
/**
* SparseArrayHelper
*
* Created by TheFinestArtist
*/
public class SparseArrayHelper {
@TheFinestArtist
TheFinestArtist / MBProgressHUD+Custom.h
Created July 25, 2015 14:37
MBProgressHUD+Custom
//
// MBProgressHUD+Custom.h
//
// Created by TheFinestArtist
//
#import <MBProgressHUD/MBProgressHUD.h>
@interface MBProgressHUD (Custom)
//
// NSDate+Custom.h
//
// Created by TheFinestArtist
//
#import <Foundation/Foundation.h>
#define DATE_FORMAT_SERVER @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
#define DATE_FORMAT_POST @"yy/MM/dd HH:mm"
//
// UIColor+Custom.h
//
// Created by TheFinestArtist
//
#import <Foundation/Foundation.h>
@interface UIColor (Custom)
@TheFinestArtist
TheFinestArtist / UIImage+Custom.h
Last active August 29, 2015 14:25
UIImage+Custom
//
// UIImage+Custom.h
//
// Created by TheFinestArtist
//
#import <Foundation/Foundation.h>
@interface UIImage (Custom)
/**
* Copyright 2013 Bo Wang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@TheFinestArtist
TheFinestArtist / ZoomLayout.java
Last active February 22, 2024 10:46 — forked from anorth/ZoomLayout.java
Pinch-zoomable Android frame layout
package au.id.alexn;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.widget.FrameLayout;
@TheFinestArtist
TheFinestArtist / KeyboardEditText.java
Created September 24, 2015 05:53
KeyboardEditText.java
/**
* Created by TheFinestArtist on 9/24/15.
*/
public class KeyboardEditText extends EditText {
public KeyboardEditText(Context context) {
super(context);
}
public KeyboardEditText(Context context, AttributeSet attrs) {