Skip to content

Instantly share code, notes, and snippets.

Avatar

Oleg Sinelnikov olegsvs

View GitHub Profile
View cv
package com.example.example.presentation.common.view.calendar
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.drawable.TransitionDrawable
import android.os.Parcel
import android.os.Parcelable
import android.util.AttributeSet
View wifi_ra7_m12
04-29 02:39:03.488 1449 2410 D WifiConfigStore: Writing to stores completed in 53 ms.
04-29 02:39:03.490 1449 2410 D WifiClientModeImpl: CMD_START_CONNECT sup state DisconnectedState my state DisconnectedState nid=0 roam=false
04-29 02:39:03.494 1449 2410 I WifiClientModeImpl: Connecting with c8:3d:dc:92:be:a2 as the mac address
04-29 02:39:03.510 844 844 W wificond: Scan aborted
04-29 02:39:03.510 1449 2410 D SupplicantStaIfaceHal: connectToNetwork xxxx isAscii=true
04-29 02:39:03.511 1449 2410 D SupplicantStaIfaceHal: Network is already saved, but need to update BSSID.
04-29 02:39:03.512 1449 4032 D WificondControl: Scan failed event
04-29 02:39:03.512 1449 2415 W WificondScannerImpl: Scan failed
04-29 02:39:03.512 23105 23105 I wpa_supplicant: getCapabilitiesInternal capabilities: NONE IEEE8021X WPA-EAP WPA-PSK WPA-EAP-SUITE-B WPA-EAP-SUITE-B-192 OWE DPP FT-PSK
04-29 02:39:03.676 1449 2408 I MiuiNetworkPolicy: updateUidState uid = 10054, uidState = 20
View with
I: [DefaultDispatcher-worker-3] REQUEST: https://httpbin.org/post
I: [DefaultDispatcher-worker-3] METHOD: HttpMethod(value=POST)
I: [DefaultDispatcher-worker-3] COMMON HEADERS
I: [DefaultDispatcher-worker-3] -> Accept: */*
I: [DefaultDispatcher-worker-3] -> Accept-Charset: UTF-8
I: [DefaultDispatcher-worker-3] CONTENT HEADERS
I: [DefaultDispatcher-worker-3] -> Content-Length: 221
I: [DefaultDispatcher-worker-3] -> Content-Type: multipart/form-data; boundary=af78ff98a058c57a3b4eca-32bbdd1371409a63-75a12f15-41dcbfaa4800fcca-35bd
I: [DefaultDispatcher-worker-3] BODY Content-Type: multipart/form-data; boundary=af78ff98a058c57a3b4eca-32bbdd1371409a63-75a12f15-41dcbfaa4800fcca-35bd
I: [DefaultDispatcher-worker-3] BODY START
View without
I: [DefaultDispatcher-worker-1] REQUEST: https://httpbin.org/post
I: [DefaultDispatcher-worker-1] METHOD: HttpMethod(value=POST)
I: [DefaultDispatcher-worker-1] COMMON HEADERS
I: [DefaultDispatcher-worker-1] -> Accept: */*
I: [DefaultDispatcher-worker-1] -> Accept-Charset: UTF-8
I: [DefaultDispatcher-worker-1] CONTENT HEADERS
I: [DefaultDispatcher-worker-1] -> Content-Length: 221
I: [DefaultDispatcher-worker-1] -> Content-Type: multipart/form-data; boundary=-4266e294-35e4c6afbc565bd56d37dd2-683fed25f586e2b2393cf04-78a6272f-510
I: [DefaultDispatcher-worker-1] BODY Content-Type: multipart/form-data; boundary=-4266e294-35e4c6afbc565bd56d37dd2-683fed25f586e2b2393cf04-78a6272f-510
I: [DefaultDispatcher-worker-1] BODY START
View 123
/**
* Used as a wrapper for data that is exposed via a LiveData that represents an event.
*/
open class Event<out T>(private val content: T) {
var hasBeenHandled = false
private set // Allow external read but not write
/**
* Returns the content and prevents its use again.
View xiaomi miui meterialedittext
import android.content.Context
import android.graphics.Rect
import android.os.Build
import android.text.InputType
import android.util.AttributeSet
import com.rengwuxian.materialedittext.MaterialEditText
import java.util.*
/*
fixes for xiaomi devices editText with inputType email
@olegsvs
olegsvs / RetrofitException.java
Created May 21, 2019 — forked from simform-solutions/RetrofitException.java
RxErrorHandlingCallAdaptorFactory+RxJava2 global retrofit error handler.
View RetrofitException.java
import com.google.gson.stream.MalformedJsonException;
import java.io.IOException;
import java.lang.annotation.Annotation;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Response;
import retrofit2.Retrofit;
View t
{
"updateType": "commentsToMe",
"timestamp": 1549023331,
"subjectsCount": 1,
"subjects": [
{
"id": 577,
"login": null,
"name": "jfhfj",
"avatar": "http://upload_1.api.twick.e-legion.amdemo.ru/get/gcbYMZDtB829",
View loader.s
.text
.global loader # making entry point visible to linker
# setting up the Multiboot header - see GRUB docs for details
.set FLAGS, 0x0 # this is the Multiboot 'flag' field
.set MAGIC, 0x1BADB002 # 'magic number' lets bootloader find the header
.set CHECKSUM, -(MAGIC + FLAGS) # checksum required
.align 4
.long MAGIC
View gist_get_images
D/PicassoLog( 5816): Intercepting requests
D/PicassoLog( 5816): Sending request http://upload_1.api.twick.e-legion.amdemo.ru/get/tCSMtMtDARgV on null
D/PicassoLog( 5816): Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjVhMWQxY2RjM2RmM2M4NTZlNjg2N2QyNDc3M2NjODE0NTEzYmVmMGQyMzdmYjU2NmExYmJhZmQ2YTI3ODJjYmFkNTQzNTFiYzY1ZjkxOTg2In0.eyJhdWQiOiIxIiwianRpIjoiNWExZDFjZGMzZGYzYzg1NmU2ODY3ZDI0NzczY2M4MTQ1MTNiZWYwZDIzN2ZiNTY2YTFiYmFmZDZhMjc4MmNiYWQ1NDM1MWJjNjVmOTE5ODYiLCJpYXQiOjE1NDI1ODIxOTcsIm5iZiI6MTU0MjU4MjE5NywiZXhwIjoxNTc0MTE4MTk3LCJzdWIiOiIyODAiLCJzY29wZXMiOltdfQ.mp8rRwLgwLYCHR3YuDZ93Yg5EDqgRD0TScQyjlVlw5sHM2xwylNJiEuTw0EhyMn8EGC2NFTtedXJuqDFMpMGYvOafz6yBbESHCebKvO07wZe4Ie2NjQ4A6Xj59L9nsCtLC8cyC-UshvyPhOpuUNkSR_FC91qCtENykSiQUNVbAOxm0ZG6v6LjNAs4KTMD1JvxxQ0IIrhY_TenUSPlfK0ASjUGm7iGVCe3_cT52cYRLyKKP-0n00AuaHW_zemIMeFX_mQ4nsH4pGeVHjYJDwdanKmLGQS_C9cJyB3hvI6roGF_aExYXc-6FIZz6Vhd-Ww-h1xELsZqNdf7b44J6LmvEWQ7a0hjXuM3dxCMquiClntnA_coljzKiqV0eaFvPaP6hKI-yKk2PrOf05XIQesuTLpjPxiS4LLqO69ML3g4QcLGqCauFjPCers