This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.ookbee.shareComponent.views; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapShader; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.RectF; | |
| import android.graphics.Shader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "apiVersion": "1.0", | |
| "data": { | |
| "id": 156, | |
| "contentType": "Podcast", | |
| "publisherId": 153, | |
| "publisherName": "[email protected]", | |
| "primaryCategoryId": 1, | |
| "primaryCategoryName": "กฎหมาย", | |
| "secondaryCategoryId": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.os.SystemClock | |
| import android.util.Log | |
| import okhttp3.Interceptor | |
| import okhttp3.Response | |
| import java.io.IOException | |
| class RequestInterceptor(private val tokenStore: TokenStore) : Interceptor { | |
| private val oauthService by lazy { ServiceGenerator.createAuthService() } | |
| private var isRefreshing = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package android.packcargo.com.myapplication.core; | |
| import android.packcargo.com.myapplication.BuildConfig; | |
| import android.packcargo.com.myapplication.core.constant.ServiceConstant; | |
| import java.io.IOException; | |
| import java.util.concurrent.TimeUnit; | |
| import okhttp3.Interceptor; | |
| import okhttp3.OkHttpClient; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package de.ebuero.android.common.tracking; | |
| /** | |
| * Created by puttipongtadang on 12/22/17. | |
| */ | |
| public class TrackableEvent { | |
| // Landing Screen | |
| public static final String TRY_OUT = "try_out"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Basic Go: Learn Go in 12 Minutes | |
| ref: https://www.youtube.com/watch?v=C8LgvuEBraI | |
| */ | |
| package main | |
| import ( | |
| "fmt" | |
| "errors" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private float dX; | |
| private float dY; | |
| @OnTouch(R.id.corner_point_top_left) | |
| boolean onPointTouch(View cornerPoint, MotionEvent event) { | |
| switch (event.getAction()) { | |
| case MotionEvent.ACTION_DOWN: | |
| dX = cornerPoint.getX() - event.getRawX(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| requestWindowFeature(Window.FEATURE_NO_TITLE); | |
| this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); |