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 / 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 / JGProgressHUD+Custom.h
Created July 25, 2015 14:19
JGProgressHUD+Custom
//
// JGProgressHUD+Custom.h
// Custom
//
// Created by The Finest Artist
//
//
#import <JGProgressHUD/JGProgressHUD.h>
//
// SDCAlertView+Custom.h
// Custom
//
// Created by The Finest Artist
//
//
#import <SDCAlertView/SDCAlertController.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;
//
// CRToast+Custom.h
// Custom
//
// Created by The Finest Artist
//
//
#import <CRToast/CRToast.h>
@TheFinestArtist
TheFinestArtist / DipPixelHelper.java
Created July 25, 2015 14:08
DipPixelHelper.java
import android.content.Context;
import android.content.res.Resources;
import android.util.TypedValue;
/**
* DipPixelHelper
*
* @author The Finest Artist
*/
public class DipPixelHelper {
@TheFinestArtist
TheFinestArtist / ScreenHelper.java
Created July 25, 2015 14:10
ScreenHelper.java
/**
* Copyright 2013 The Finest Artist
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law or agreed to in writing, software
@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
*/
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 / 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 {