A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); | |
intent.addCategory(Intent.CATEGORY_OPENABLE); | |
intent.setType("*/*"); | |
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); | |
// In code that handles the result returned to process the files: | |
ClipData clipData = intent.getClipData(); |
In the attached united-nations.json
you will find a list of all regions/subregions of the world WITHOUT countries.
The map is based on the Wikipedia article
{
"Africa": [
"Eastern Africa",
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Загрузка файлов на сервер</title> | |
</head> | |
<body> | |
<h2><p><b> Форма для загрузки файлов </b></p></h2> | |
<form action="upload.php" method="post" enctype="multipart/form-data"> | |
<input type="file" name="filename"><br> |
/** | |
* 비동기로 비트맵 이미지에 Blur효과를 설정하고 필요한 후 처리들을 한다. | |
* | |
* @author KangSung-Woo | |
*/ | |
public class AsyncBlurTask | |
extends AsyncTask<Bitmap, Integer, Bitmap> { | |
// 이미지 리사이징 할 최소 사이즈 | |
public static final int DEFAULT_SIZE_PX = 30; | |
private static final String TAG = AsyncBlurTask.class.getSimpleName(); |
SELECT CAST(@TIME_PERIOD_START AS DATE) AS PERIOD_START, | |
CAST(@TIME_PERIOD_END AS DATE) AS PERIOD_END, | |
c.CLIENT_NAME, | |
p.GRP_ID, | |
COUNT(DISTINCT u.USR_ID) AS USER_COUNT, | |
COUNT(DISTINCT COALESCE(up.CHILD_ID, u.USR_ID)) AS STUDENT_COUNT | |
FROM CLIENTS c | |
INNER JOIN CLIENT_PACKAGES cp ON (c.CLIENT_ID = cp.CLIENT_ID) | |
INNER JOIN PACKAGES p ON (p.GRP_ID = cp.GRP_ID) | |
INNER JOIN GROUPS g ON (p.GRP_ID = g.GRP_ID) |
public class ClearableEditText | |
extends EditText | |
implements View.OnTouchListener, View.OnFocusChangeListener, TextWatcherAdapter.TextWatcherListener { | |
public interface OnTextClearedListener { | |
void wasClearedText(); | |
} | |
private Drawable drawables; | |
private OnTextClearedListener textClearedListener; |
public class TextWatcherAdapter | |
implements TextWatcher { | |
private final EditText view; | |
private final TextWatcherListener listener; | |
public TextWatcherAdapter(EditText editText, TextWatcherListener listener) { | |
this.view = editText; | |
this.listener = listener; | |
} |
/** | |
* This evaluator can be used to perform type interpolation between integer | |
* values that represent ARGB colors. | |
* <p/> | |
* 2015/03/26 강성우 : ArgbEvaluator가 API 21이상 에서만 동작하기 때문에 따로 구현 하였음. | |
*/ | |
public class ArgbEvaluatorCompat implements TypeEvaluator { | |
private static final ArgbEvaluatorCompat sInatance = new ArgbEvaluatorCompat(); | |
/** |
{ | |
"af": { | |
"countryName": "Afghanistan", | |
"langName": "Pashto", | |
"countryCodes": { | |
"iso3166_1": "af", | |
"GEC": "af" | |
}, | |
"langCodes": { | |
"iso639_1": "ps" |