This file contains 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 requests | |
import os | |
from bs4 import BeautifulSoup | |
def checkChild(parentdir, url): | |
r = requests.get(url) | |
if r.headers.get('Content-Type') != 'text/html;charset=UTF-8': |
This file contains 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
@RunWith(RobolectricTestRunner.class) | |
@Config(sdk = {VERSION_CODES.P}, shadows = {ShadowAdvertisingIdClient.class}) | |
public class AdIdTest { | |
private Context context = ApplicationProvider.getApplicationContext(); | |
@Test | |
public void test_when_context_is_not_null_then_get_advertising_id() { | |
AdvertisingIdClient.Info adId = new AdIdHelper(context).getAdvertisingID(context); |
This file contains 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.content.Context | |
import com.mopub.nativeads.AdapterHelper | |
import com.mopub.nativeads.FacebookAdRenderer | |
import com.mopub.nativeads.MoPubNative | |
import com.mopub.nativeads.MoPubStaticNativeAdRenderer | |
import com.mopub.nativeads.NativeAd | |
import com.mopub.nativeads.NativeAd.MoPubNativeEventListener | |
import com.mopub.nativeads.NativeErrorCode | |
import com.mopub.nativeads.ViewBinder |
This file contains 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.content.Context; | |
import android.text.TextUtils; | |
import android.util.AttributeSet; | |
import android.view.ViewGroup; | |
import com.android.volley.VolleyError; | |
import com.android.volley.toolbox.ImageLoader; | |
/** |
This file contains 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.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapShader; | |
import android.graphics.Canvas; | |
import android.graphics.ColorFilter; | |
import android.graphics.Matrix; | |
import android.graphics.Paint; | |
import android.graphics.RectF; |