Skip to content

Instantly share code, notes, and snippets.

Avatar

Leonardo Taehwan Kim TheFinestArtist

View GitHub Profile
View NSDate+Custom.h
//
// 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"
View MBProgressHUD+Custom.h
//
// MBProgressHUD+Custom.h
//
// Created by TheFinestArtist
//
#import <MBProgressHUD/MBProgressHUD.h>
@interface MBProgressHUD (Custom)
View SparseArrayHelper.java
import android.util.SparseArray;
import java.util.ArrayList;
/**
* SparseArrayHelper
*
* Created by TheFinestArtist
*/
public class SparseArrayHelper {
View IntArrayHelper.java
/**
* IntArrayHelper
*
* Created by TheFinestArtist
*/
public class IntArrayHelper {
public static boolean contains(int[] array, int value) {
if (array == null)
return false;
View DateHelper.java
import android.text.format.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
/**
* DateHelper
*
View ViewHelper.java
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;
/**
* ViewHelper
*
* Created by TheFinestArtist
*/
View LocaleHelper.java
import java.util.Locale;
import java.util.TimeZone;
/**
* LocaleHelper
*
* Created by TheFinestArtist
*/
public class LocaleHelper {
View PackagesHelper.java
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
/**
* PackagesHelper
*
* @author The Finest Artist
*/
View PrefixHeader.pch
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define UIColorFromRGBA(rgbValue, alphaValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:alphaValue]
View SDCAlertView+Custom.h
//
// SDCAlertView+Custom.h
// Custom
//
// Created by The Finest Artist
//
//
#import <SDCAlertView/SDCAlertController.h>
You can’t perform that action at this time.