Skip to content

Instantly share code, notes, and snippets.

2024-03-26 13:20:00.914 18582-18654 OkHttp org.merakilearn D <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "merd-api.merakilearn.org": No address associated with hostname
2024-03-26 13:20:00.919 18582-18659 FirebasePerformance org.merakilearn D Fetched value: 'true' for key: 'fpr_enabled' from Firebase Remote Config.
2024-03-26 13:20:00.920 18582-18659 FirebasePerformance org.merakilearn D Fetched value: '' for key: 'fpr_disabled_android_versions' from Firebase Remote Config.
2024-03-26 13:20:00.920 18582-18659 FirebasePerformance org.merakilearn D Fetched value: 'true' for key: 'fpr_enabled' from Firebase Remote Config.
2024-03-26 13:20:00.921 18582-18659 FirebasePerformance org.merakilearn D Fetched value: '' for key: 'fpr_disabled_android_versions' from Firebase Remote Config.
2024-03-26 13:20:00.921 18582-18659 FirebasePerformance org.m
the gif will be added here!
@surajsahani
surajsahani / KotlinInvadersActivity.kt
Created January 12, 2020 03:20 — forked from EliteIntegrity/KotlinInvadersActivity.kt
The completed KotlinInvadersActivity class
package com.gamecodeschool.kotlininvaders
import android.app.Activity
import android.graphics.Point
import android.os.Bundle
class KotlinInvadersActivity : Activity() {
// kotlinInvadersView will be the view of the game
// It will also hold the logic of the game
#!/usr/bin/python3
import json as js
import urllib.request
choice=1
def grabNews(source,sort,apikey):
url=' https://newsapi.org/v1/articles?'+'source='+source+'&sortBy='+sort+'&apikey='+apikey
# print(url)
data=urllib.request.urlopen(url).read().decode('utf-8')
newsdata = js.loads(data)
return newsdata