Skip to content

Instantly share code, notes, and snippets.

View repitch's full-sized avatar
💭
👨‍💼 work on office

Ilya Pyavkin repitch

💭
👨‍💼 work on office
  • Zelenograd - Ryazan
View GitHub Profile
@repitch
repitch / queue-calculate-request.json
Created December 20, 2018 00:01
Request for /api/queue/calculate
{
"insuranceCompany": [
{
"company": "ALF",
"program": "CLASSIC"
},
{
"company": "VTB",
"program": "ECONOMY"
},
@repitch
repitch / queue-result.json
Created December 19, 2018 23:27
Result for /api/queue/result
{
"351833": {
"complete": true,
"response": {
"responseDate": "",
"status": "error",
"insuranceCompany": "ALF",
"program": {
"id": 5,
"name": "CLASSIC",
@repitch
repitch / HintHideEditText.java
Last active April 21, 2024 11:07
Android / custom editText that removes/restores hint on focus in/out
import android.content.Context;
import android.graphics.Rect;
import android.support.annotation.StringRes;
import android.util.AttributeSet;
import android.widget.EditText;
/**
* Edit text that removes hint when it is focused.
* If text is centered horizontally and hint is set, on some devices cursor can look ugly in the center of hint.
* So, this editText automatically hides hint when focus is on, and shows it back when focus is out