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
#!/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 |
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
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 |
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
the gif will be added here! |
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
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 |