This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
/** | |
Provides the default transaction block for perform a Realm transaction. | |
:param: block The block to perform the transaction. The realm is used to store the transaction. | |
*/ | |
func realmTransaction(block: (realm: RLMRealm) -> Void) { | |
let realm = RLMRealm.defaultRealm() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSObject+UTFrameworkProtected.h | |
// UTFramework | |
// | |
// Created by Juyoung Lee on 2014. 1. 2.. | |
// Copyright (c) 2014년 Juyoung.me. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
// NSObject내에 저장된 callback을 실행시키는 핼퍼 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.content.res.Resources; | |
import android.util.TypedValue; | |
/** | |
* DipPixelHelper | |
* | |
* @author The Finest Artist | |
*/ | |
public class DipPixelHelper { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
/** | |
* Created by TheFinestArtist on 5/14/15. | |
*/ | |
public class Vibrator { | |
public static void eee(Context context) { | |
if (context == null) | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SDCAlertView+Custom.h | |
// Custom | |
// | |
// Created by The Finest Artist | |
// | |
// | |
#import <SDCAlertView/SDCAlertController.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CRToast+Custom.h | |
// Custom | |
// | |
// Created by The Finest Artist | |
// | |
// | |
#import <CRToast/CRToast.h> |
OlderNewer