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 / PackagesHelper.java
Created July 25, 2015 14:28
PackagesHelper.java
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
/**
* PackagesHelper
*
* @author The Finest Artist
*/
@TheFinestArtist
TheFinestArtist / PrefixHeader.pch
Created July 25, 2015 14:26
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]
//
// SDCAlertView+Custom.h
// Custom
//
// Created by The Finest Artist
//
//
#import <SDCAlertView/SDCAlertController.h>
//
// CRToast+Custom.h
// Custom
//
// Created by The Finest Artist
//
//
#import <CRToast/CRToast.h>
@TheFinestArtist
TheFinestArtist / JGProgressHUD+Custom.h
Created July 25, 2015 14:19
JGProgressHUD+Custom
//
// JGProgressHUD+Custom.h
// Custom
//
// Created by The Finest Artist
//
//
#import <JGProgressHUD/JGProgressHUD.h>
@TheFinestArtist
TheFinestArtist / PhotoHelper.java
Last active August 29, 2015 14:25
PhotoHelper.java
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.lang.ref.SoftReference;
@TheFinestArtist
TheFinestArtist / EmailHelper.java
Created July 25, 2015 14:13
EmailHelper.java
import android.content.Context;
import android.content.Intent;
/**
* Created by TheFinestArtist
*/
public class EmailHelper {
public static void sendSupportMail(Context context) {
Intent i = new Intent(Intent.ACTION_SEND);
@TheFinestArtist
TheFinestArtist / AgeHelper.java
Last active August 29, 2015 14:25
AgeHelper.java
import android.text.format.DateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by TheFinestArtist
*/
public class AgeHelper {
import android.content.Context;
/**
* Created by TheFinestArtist on 5/14/15.
*/
public class Vibrator {
public static void eee(Context context) {
if (context == null)
return;
@TheFinestArtist
TheFinestArtist / KeyboardHelper.java
Created July 25, 2015 14:11
KeyboardHelper.java
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
/**
* KeyboardHelper
* It pops up keyboard to input texts and drops a cursor to a view(final View view, such as Edittext)
*
* @author The Finest Artist
*/