Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond

Alexey Bykov NoNews

I may be slow to respond
Block or report user

Report or block NoNews

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
View trace
D/OkHttp: --> POST
Content-Length: 0
User-Agent: HUAWEI CLT-L29; 9 O_MR1; 0.0.54-debug
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxMDUwLCJ1c2VybmFtZSI6Ijc5MDk5NDY1NDY0IiwidXNlcl91dWlkIjoiYzZmZGI1NjMtMTI5OC00ZTMyLThlMjAtNjEyYTI2ODNmZTgxIiwiZXhwIjoxNTUzOTY0NjU4LCJvcmlnX2lhdCI6MTU1MTM3MjY1OH0.YT8S6IkeflGC8jM3E6Y5ZGX9F5hRPzO9KNPb-NBq0J0
--> END POST (0-byte body)
D/ChatActivity$enablePaginate: --------isBottomReached--------
D/ChatActivity$initEmoji: Keyboard close
D/OkHttp: <-- 500 (124ms)
server: nginx/1.15.8
date: Thu, 28 Feb 2019 17:59:31 GMT
NoNews /
Created Jan 7, 2019
Work with fragments with transfer data
public class Dog implements Serializable {
private String name;
public Dog(String name) { = name;
public String getName() {
View gist:d1e9579c658fe4f61a3420c0c571d4a7
File file = new File(selectedImage.getPath());
RequestBody body = RequestBody.create(MediaType.parse("image/*"), file);
restApi.imageEndpoint.upload(user.getToken(), body)
.subscribe(this::successGetImageDTO, this::errorGetImageDto);
View ViewGroup
fun ViewGroup.onKeyboardStateChanged(activity: Activity, listener: (Boolean) -> Unit) {
viewTreeObserver.addOnGlobalLayoutListener {
//Размер экрана
val screenSize = Point()
//Размер фрейма, который видит пользователь
val rect = Rect()
View build.gradle
apply plugin: ‘’
View google-services.json
"project_info": {
"project_number": "887654601522",
"firebase_url": "",
"project_id": "fir-test3-4bab3",
"storage_bucket": ""
"client": [
"client_info": {
View google_analytics.json
"user_dim": {
"user_id": null,
"first_open_timestamp_micros": "1488878151620000",
"user_properties": [
"key": "first_open_time",
"value": {
"value": {
setMinimumSessionDuration (long milliseconds); // default 10 sec
setSessionTimeoutDuration (long milliseconds); // default 30 min
View manifest.xml
android:value=”true” />
You can’t perform that action at this time.