Skip to content

Instantly share code, notes, and snippets.

View TheFinestArtist's full-sized avatar
🔥
Reigniting

Leonardo TheFinestArtist

🔥
Reigniting
View GitHub Profile
@TheFinestArtist
TheFinestArtist / LanguageDetector.java
Created December 27, 2014 13:40
Detect whether current language is Korean, Japanese or Others
/**
* 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 June 13, 2019 23:33
Grey color code for Android
<?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
/**
* 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
@TheFinestArtist
TheFinestArtist / colors_basic.xml
Last active December 17, 2015 03:48
Basic color code for Android
<?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>
<?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