Skip to content

Instantly share code, notes, and snippets.

View narxeba's full-sized avatar

Tran Chung narxeba

View GitHub Profile
@narxeba
narxeba / regex-japanese.txt
Created September 5, 2017 03:01 — forked from terrancesnyder/regex-japanese.txt
Regex for Japanese
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
([一-龯])
Regex for matching Hirgana or Katakana
([ぁ-んァ-ン])
Regex for matching Non-Hirgana or Non-Katakana
([^ぁ-んァ-ン])
Regex for matching Hirgana or Katakana or basic punctuation (、。’)
@narxeba
narxeba / ImageRadioButton.java
Created March 10, 2016 02:23 — forked from siyamed/ImageRadioButton.java
Android RadioButton With Text Drawable Aligned Centered With Text
/**
*
* Android radio button that draws (state list) drawable to immediate left of its text.
* RadioButton has an attribute drawableLeft or drawableStart, however those
* draw the drawable to the left of the component and does not center align
* with the text itself.
*
* This ui component also supports statelistdrawables and state changes on
* the drawable.
*
@narxeba
narxeba / RecycleEmptyErrorView.java
Created February 4, 2016 04:43 — forked from henrytao-me/RecycleEmptyErrorView.java
Empty and Error in RecycleView
/*
* Copyright 2015 "Henry Tao <hi@henrytao.me>"
*
* 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