Skip to content

Instantly share code, notes, and snippets.

View imknown's full-sized avatar
🍄
👩🏻‍💻 👩🏻‍💻

Kin Kaku imknown

🍄
👩🏻‍💻 👩🏻‍💻
View GitHub Profile
@imknown
imknown / Truss.java
Created November 26, 2020 12:35 — forked from JakeWharton/Truss.java
Extremely simple wrapper around SpannableStringBuilder to make the API more logical and less awful. Apache 2 licensed.
import android.text.SpannableStringBuilder;
import java.util.ArrayDeque;
import java.util.Deque;
import static android.text.Spanned.SPAN_INCLUSIVE_EXCLUSIVE;
/** A {@link SpannableStringBuilder} wrapper whose API doesn't make me want to stab my eyes out. */
public class Truss {
private final SpannableStringBuilder builder;
private final Deque<Span> stack;
@imknown
imknown / ARDC(B1425) Android 10 error locat.log
Last active September 27, 2019 05:56
ARDC(B1425) Android 10 error logcat
2019-09-27 13:40:54.873 11896-11896/? I/hotPlugMonitor: type=1400 audit(0.0:5916): avc: denied { getattr } for path="socket:[75212]" dev="sockfs" ino=75212 scontext=u:r:untrusted_app_27:s0:c132,c256,c512,c768 tcontext=u:r:untrusted_app_27:s0:c132,c256,c512,c768 tclass=netlink_kobject_uevent_socket permissive=1
2019-09-27 13:40:55.452 550-20006/? E/ResolverController: No valid NAT64 prefix (102, <unspecified>/0)
2019-09-27 13:40:55.822 1236-5944/? D/DhcpClient: Received packet: 54:ee:75:be:5d:70 ACK: your new IP /0.0.0.0, netmask /255.255.248.0, gateways [/10.20.0.1] DNS servers: /10.20.0.152 /10.20.0.144 , lease time null
2019-09-27 13:40:55.826 1236-5944/? D/DhcpClient: Received packet: 40:8d:5c:bf:8d:40 ACK: your new IP /0.0.0.0, netmask /255.255.248.0, gateways [/10.20.0.1] DNS servers: /10.20.0.152 /10.20.0.144 , lease time null
--------- beginning of system
2019-09-27 13:40:56.263 954-1436/? W/ProcessStats: Tracking association SourceState{5386a10 com.google.android.gms.persistent/10101 ImpFg #8
@imknown
imknown / SMBDIS.ASM
Created March 10, 2018 12:35 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@imknown
imknown / Comparison.txt
Created January 10, 2018 07:48 — forked from tomaszpolanski/Comparison.txt
Kotlin Standard comparison
╔══════════╦═════════════════╦═══════════════╦═══════════════╗
║ Function ║ Receiver (this) ║ Argument (it) ║ Result ║
╠══════════╬═════════════════╬═══════════════╬═══════════════╣
║ let ║ this@MyClass ║ String("...") ║ Int(42) ║
║ run ║ String("...") ║ N\A ║ Int(42) ║
║ run* ║ this@MyClass ║ N\A ║ Int(42) ║
║ with* ║ String("...") ║ N\A ║ Int(42) ║
║ apply ║ String("...") ║ N\A ║ String("...") ║
║ also ║ this@MyClass ║ String("...") ║ String("...") ║
╚══════════╩═════════════════╩═══════════════╩═══════════════╝
@imknown
imknown / genymotionwithplay.txt
Created December 25, 2017 05:52 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services for ARM
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@imknown
imknown / KotlinFunctions.md
Created December 16, 2017 07:26 — forked from cbeyls/KotlinFunctions.md
Comparison of Kotlin functions: also, apply, let, run, with
Function Function type Target passed as Returns
also Extension it Target
apply Extension this Target
let Extension it Block return value
run Extension this Block return value
with Regular this Block return value