Skip to content

Instantly share code, notes, and snippets.

Leonardo Taehwan Kim TheFinestArtist

Block or report user

Report or block TheFinestArtist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TheFinestArtist
TheFinestArtist / LanguageDetector.java
Created Dec 27, 2014
Detect whether current language is Korean, Japanese or Others
View LanguageDetector.java
/**
* Created by TheFinestArtist on 2014. 9. 2..
*/
public class LanguageDetector {
public enum Language {Korean, Japanese, English}
public static boolean isEnglish(CharSequence charSequence) {
boolean isEnglish = true;
for (char c : charSequence.toString().toCharArray()) {
@TheFinestArtist
TheFinestArtist / colors_grey.xml
Last active Jun 13, 2019
Grey color code for Android
View colors_grey.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright 2013 The Finest Artist
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
View colors_transparent.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright 2013 The Finest Artist
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
View YouTubePlayerActivity.java
/**
* Copyright 2013 The Finest Artist
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View KeyboardUtil.java
/*
* Copyright 2015 Mike Penz All rights reserved.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@TheFinestArtist
TheFinestArtist / ZoomLayout.java
Last active Aug 31, 2017 — forked from anorth/ZoomLayout.java
Pinch-zoomable Android frame layout
View ZoomLayout.java
package au.id.alexn;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.widget.FrameLayout;
View SoftKeyboard.java
/*
* Author: Felipe Herranz (felhr85@gmail.com)
* Contributors:Francesco Verheye (verheye.francesco@gmail.com)
* Israel Dominguez (dominguez.israel@gmail.com)
*/
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import android.os.Handler;
View AndroidBug5497Workaround.java
public class AndroidBug5497Workaround {
// For more information, see https://code.google.com/p/android/issues/detail?id=5497
// To use this class, simply invoke assistActivity() on an Activity that already has its content view set.
public static void assistActivity (Activity activity) {
new AndroidBug5497Workaround(activity);
}
private View mChildOfContent;
View UIView+CustomTimingFunction.h
//
// UIView+CustomTimingFunction.h
// Instants
//
// Created by Christian Giordano on 16/10/2013.
// Copyright (c) 2013 Christian Giordano. All rights reserved.
//
#import <UIKit/UIKit.h>
@TheFinestArtist
TheFinestArtist / colors_basic.xml
Last active Dec 17, 2015
Basic color code for Android
View colors_basic.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="Color_White">#FFFFFF</color>
<color name="Color_Ivory">#FFFFF0</color>
<color name="Color_LightYellow">#FFFFE0</color>
<color name="Color_Yellow">#FFFF00</color>
<color name="Color_Snow">#FFFAFA</color>
<color name="Color_FloralWhite">#FFFAF0</color>
<color name="Color_LemonChiffon">#FFFACD</color>
You can’t perform that action at this time.