Skip to content

Instantly share code, notes, and snippets.

View arunkumar9t2's full-sized avatar

Arunkumar arunkumar9t2

View GitHub Profile
@farmerbb
farmerbb / chatgpt.kts
Created March 16, 2023 04:07
Simple CLI interface to ChatGPT (OpenAI's code completion API) using Kotlin and kscript
#!/bin/bash
/*/bin/true
[[ -z $(which kscript) ]] && install-kscript
kscript -s "$0" "$@"
exit $?
*/
@file:DependsOn("com.github.ajalt.clikt:clikt-jvm:3.0.1")
@slightfoot
slightfoot / main.dart
Last active June 1, 2024 11:10
Firebase Login/Logout Example - by Simon Lightfoot
/*
This example uses the following packages:
firebase_auth: 0.14.0+5
google_sign_in: 4.0.7
provider: 3.1.0+1
Make sure you have setup your project with Firebase by following these instructions:
1. Follow Option 1 instructions here up to Step 3
@objcode
objcode / ConcurrencyHelpers.kt
Last active May 31, 2024 13:31
Helpers to control concurrency for one shot requests using Kotlin coroutines.
/* Copyright 2019 The Android Open Source Project
*
* 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
*
* https://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,