Skip to content

Instantly share code, notes, and snippets.

View nathanmkaya's full-sized avatar
🎯
Focusing

Nathan Mkaya nathanmkaya

🎯
Focusing
View GitHub Profile
@nathanmkaya
nathanmkaya / txt
Created August 11, 2023 11:09
sample data
"https://thermondo-bilder-etc-review.s3.eu-west-1.amazonaws.com/delivery/installationpicture/4181/9/20230811121959_b9e538_uY4xM17.l.jpeg?AWSAccessKeyId=AKIA4EITUPTJL7WOHOWB&Signature=jtagFhl%2FT2b0G%2BttZN%2FrYh5GdCI%3D&Expires=1691752928",
"https://thermondo-bilder-etc-review.s3.eu-west-1.amazonaws.com/delivery/installationpicture/4181/9/20230811122007_0b5d4f_tVeEazB.l.jpeg?AWSAccessKeyId=AKIA4EITUPTJL7WOHOWB&Signature=NzXJo5T2zVTgWb%2FOpcWyAiIhCMg%3D&Expires=1691752928",
"https://thermondo-bilder-etc-review.s3.eu-west-1.amazonaws.com/delivery/installationpicture/4181/9/20230811122016_9a36fd_st2Jn3v.l.jpeg?AWSAccessKeyId=AKIA4EITUPTJL7WOHOWB&Signature=Qb0GWFAqnaaMMkGliIKCxabIJxU%3D&Expires=1691752928",
"https://thermondo-bilder-etc-review.s3.eu-west-1.amazonaws.com/delivery/installationpicture/4181/9/20230811121959_b9e538_uY4xM17.l.jpeg?AWSAccessKeyId=AKIA4EITUPTJL7WOHOWB&Signature=0YctvGenEJndf5Ra0FtlsxzsNlk%3D&Expires=1691752979",
"https://thermondo-bilder-etc-review.s3.eu-west-1.amazonaws.com/delivery/ins
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.location.Location
import android.location.LocationListener
import android.location.LocationManager
import android.os.Looper
import androidx.core.content.getSystemService
import com.google.android.gms.common.api.ResolvableApiException
import com.google.android.gms.location.FusedLocationProviderClient
FAILED: build out/target/product/oneplus7/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
Outputs: out/target/product/oneplus7/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
Error: exited with code: 1
Command: /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/oneplus7/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/oneplus7/obj/FAKE/sepolicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/oneplus7/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/oneplus7/obj/FAKE/sepolicy_neverallows_intermediates/policy_2.conf || ( echo \"\" 1>&2; echo \"sepolicy-analyze failed. This is most likely due to the use\" 1>&2; echo \"of an expanded attribute in a neverallow assertion. Please fix\" 1>&2; echo \"the policy.\" 1>&2; exit 1 ) ) && (touch out/target/prod
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_cf_arm64_auto-userdebug
4. aosp_cf_arm64_phone-userdebug
5. aosp_cf_x86_64_foldable-userdebug
6. aosp_cf_x86_64_pc-userdebug
7. aosp_cf_x86_64_phone-userdebug
def acme_formatter(acme: str) -> list[int]:
data = acme.lower()
output = []
reference_map = {"_": 0}
for k, v in enumerate(ascii_lowercase):
reference_map[v] = k + 1
while len(data) != 0:
count = reference_map[data[0]]
print(f'count {count}')
total = 0
@nathanmkaya
nathanmkaya / ImagePicker.java
Created May 11, 2021 07:00 — forked from Mariovc/ ImagePicker.java
Utility for picking an image from Gallery/Camera with Android Intents
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
Executing tasks: [:demo:assembleDebug] in project C:\Users\Nathan Mkaya\AndroidStudioProjects\backbase-intro
> Task :demo:preBuild UP-TO-DATE
> Task :demo:preDebugBuild UP-TO-DATE
> Task :demo:compileDebugAidl NO-SOURCE
> Task :demo:checkDebugManifest UP-TO-DATE
> Task :demo:compileDebugRenderscript NO-SOURCE
> Task :demo:generateDebugBuildConfig UP-TO-DATE
> Task :demo:prepareLintJar UP-TO-DATE
> Task :demo:generateDebugSources UP-TO-DATE

Keybase proof

I hereby claim:

  • I am nathanmkaya on github.
  • I am nathanmkaya (https://keybase.io/nathanmkaya) on keybase.
  • I have a public key ASB-am6MDA_ivzGFPOb-lcN27TNFKed9oxWGEhTNFeVUtAo

To claim this, I am signing this object:

@nathanmkaya
nathanmkaya / Subfolder to git repo.md
Created January 3, 2019 20:43 — forked from korya/Subfolder to git repo.md
Convert subfolder into Git submodule