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.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
/** | |
* Created by Dongheyon Jeong on 15. 1. 20. | |
* | |
* AppInfo | |
* 앱의 일반적인 정보를 제공하는 클래스 | |
*/ |
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
private int mProperty; | |
@IntDef(value = { PROPERTY_A, PROPERTY_B }) | |
@Retention(RetentionPolicy.SOURCE) | |
public @interface MyProperty {} | |
public void setProperty(@MyProperty int property) { | |
mProperty = Property; | |
} | |
public @MyProperty int getProperty() { | |
return mProperty; |
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
package com.what.ever; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.os.Bundle; | |
import java.util.ArrayList; | |
/** | |
* Created by Dongheyon Jeong in ActivityLifecycleCallbacksTest on July 9th, 2015 |
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 | |
// Usage: | |
// | |
// let car = Car(engine: "Awesome Engine", gas: 90, builder: { | |
// $0.hasCooler = true | |
// $0.hasSmartKey = true | |
// }) | |
final class Car { |
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
final class Singleton { | |
// MARK: - Singleton | |
private struct Instance { | |
static var dispatchToken: dispatch_once_t = 0 | |
static var instance: Singleton? | |
} | |
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
public class MethodHierarchy { | |
// 0: dalvik.system.VMStack.getThreadStackTrace | |
// 1: java.lang.Thread.getStackTrace | |
// 2: Current method(ex. get) | |
// 3: Method calling current method | |
private static final int DEFAULT_FROM_DEPTH = 4; | |
public static String get() { | |
StackTraceElement[] elements = Thread.currentThread().getStackTrace(); | |
return get(DEFAULT_FROM_DEPTH, elements.length); |
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 java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectInput; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutput; | |
import java.io.ObjectOutputStream; | |
/** | |
* Created by Dongheyon Jeong in News Kit from Yooii Studios Co., LTD. on 15. 3. 11. |
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
package com.yooiistudios.coreutils; | |
import android.util.Log; | |
import java.lang.reflect.Array; | |
/** | |
* Created by Dongheyon Jeong in Randombox_Android from Yooii Studios Co., LTD. on 15. 7. 5. | |
* <br/><br/> | |
* HashCodeUtils<br/> |
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
- (AVDictionary*) createAVFormatContextOptions: (NSDictionary*)dict | |
{ | |
AVDictionary *options = NULL; | |
for (NSString* keyString in dict) { | |
av_dict_set(&options, [keyString UTF8String], [[dict objectForKey:keyString] UTF8String], 0); | |
} | |
return options; | |
} |
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
Stop: | |
Ubuntu:~ Me$ docker ps -a | grep 'ago' | awk '{print $1}' | xargs docker stop | |
Remove: | |
Ubuntu:~ Me$ docker ps -a | grep 'ago' | awk '{print $1}' | xargs docker rm |
OlderNewer