Skip to content

Instantly share code, notes, and snippets.

View yigit's full-sized avatar

Yigit Boyar yigit

View GitHub Profile
@yigit
yigit / activity.kt
Created March 10, 2019 06:21
recyclerview that does not remove on swipe
package com.example.android.recyclerviewswipe
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.AppCompatCheckBox
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ItemTouchHelper
10-25 13:31:35.600 16796 16858 I MixpanelAPI: Cannot post message to Mixpanel Servers (May Retry)
10-25 13:31:35.600 16796 16858 I MixpanelAPI: java.net.UnknownHostException: api.mixpanel.com
10-25 13:31:35.600 16796 16858 I MixpanelAPI: at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
10-25 13:31:35.600 16796 16858 I MixpanelAPI: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
10-25 13:31:35.600 16796 16858 I MixpanelAPI: at java.net.InetAddress.getAllByName(InetAddress.java:256)
10-25 13:31:35.600 16796 16858 I MixpanelAPI: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:140)
10-25 13:31:35.600 16796 16858 I MixpanelAPI: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
10-25 13:31:35.600 16796 16858 I MixpanelAPI: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
10-25 13:31:35.600 16796 16858 I MixpanelAPI: at org.apache.http.impl.
@yigit
yigit / IabHelper.java
Last active November 4, 2017 17:39
Iab helper from Google in app billing example
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,