Skip to content

Instantly share code, notes, and snippets.

View surfmuggle's full-sized avatar
💭
Browsing stuff

surfmuggle surfmuggle

💭
Browsing stuff
View GitHub Profile
@surfmuggle
surfmuggle / Main.kt
Last active January 23, 2024 21:49 — forked from Da9el00/Main.kt
Kotlin - Making API Calls in Kotlin Without External Libraries
import java.io.BufferedReader
import java.io.InputStreamReader
import java.net.HttpURLConnection
import java.net.URI
import java.net.URL
fun main() {
val apiUrl = "https://catfact.ninja/fact" //API endpoint
// add proxy support if your pc is behind a corporate proxy
System.setProperty("java.net.useSystemProxies", "true");
@surfmuggle
surfmuggle / index.html
Created March 12, 2017 00:25 — forked from anonymous/index.html
empty-dust-5559
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>empty-dust-5559</title>
<link rel="stylesheet" href="styles.css">
<script type="application/dart" src="main.dart"></script>
</head>