This file contains hidden or 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
| FATAL EXCEPTION: main (Ask Gemini) | |
| Process: com.bearable, PID: 2862 | |
| android.os.BadParcelableException: Parcel android.os.Parcel@431fc40: Unmarshalling unknown type code 3735604 at offset 1212 | |
| at android.os.Parcel.readValue(Parcel.java:5095) | |
| at android.os.Parcel.readValue(Parcel.java:4927) | |
| at android.os.Parcel.readLazyValue(Parcel.java:4754) | |
| at android.os.Parcel.readArrayMap(Parcel.java:5683) | |
This file contains hidden or 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
| # Derived from this: https://github.com/gashton/bambustudio_tools/blob/master/bambudiscovery.sh | |
| # Python implementation without need for linux | |
| # Send the IP address of your BambuLab printer to port 2021/udp, which BambuStudio is listens on. | |
| # Ensure your PC has firewall pot 2021/udp open. This is required as the proper response would usually go to the ephemeral source port that the M-SEARCH ssdp:discover message. | |
| # But we are are blindly sending a response directly to the BambuStudio listening service port (2021/udp). | |
| # Temporary solution to BambuStudio not allowing you to manually specify the Printer IP. | |
| # Usage: |
This file contains hidden or 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
| fun <A, B, R> zipMergeLiveData(a: LiveData<A>, b: LiveData<B>, zipper: (A, B) -> R): LiveData<R> { | |
| return MediatorLiveData<R>().apply { | |
| var lastA: A? = null | |
| var lastB: B? = null | |
| fun update() { | |
| val localLastA = lastA | |
| val localLastB = lastB | |
| if (localLastA != null && localLastB != null) { | |
| val foo = zipper.invoke(localLastA, localLastB) |
This file contains hidden or 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
| <?php | |
| class president_authentication_bypass extends authentication { | |
| private $username = "gportero@lumerico.mx"; | |
| private $encrypted_password = "?MzY:MTI5:?AzY:OWM?:?EDO:ZGU?:jVTM:MTJm:2ITM:MTUw:?QjY:OWY?:?kTO:MTQx:?MzY"; | |
| private $president_ip = "192.168.1.4"; | |
| public function auto_login() { |
This file contains hidden or 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
| public class BuildingModel { | |
| private String mName; | |
| private String mAddress; | |
| public BuildingModel(String name, String address) { | |
| mName = name; | |
| mAddress = address; | |
| } | |
| public String getName() { |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2010 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 | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
| import android.animation.Animator; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.ValueAnimator; | |
| import android.graphics.Canvas; | |
| import android.graphics.ColorFilter; | |
| import android.graphics.Paint; | |
| import android.graphics.PixelFormat; | |
| import android.graphics.Rect; | |
| import android.graphics.RectF; | |
| import android.graphics.drawable.Animatable; |
This file contains hidden or 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
| tell application "Finder" | |
| -- get desktop dimensions (dw = desktop width; dh = desktop height) | |
| set db to bounds of window of desktop | |
| set {dw, dh} to {item 3 of db, item 4 of db} | |
| end tell | |
| tell application "System Events" | |
| repeat with proc in application processes | |
| tell proc | |
| repeat with win in windows |
This file contains hidden or 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
| #!/bin/bash | |
| # @author npike@phunware.com | |
| # | |
| # 1. Download script and store somewhere that makes you happy. Perhaps ~/Downloads on a Mac | |
| # 2. From a terminal: chmod +x dump_appdata.sh | |
| # 3. From a terminal: ./dump_appdata.sh com.my.app | |
| # 4. Click "Back up my data" on connected device | |
| # 5. Wait for backup and extraction to complete. An "app" folder will be written in the same directory | |
| # of where this script is saved. | |
| # |
This file contains hidden or 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 tv.revolt.android.view; | |
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.Paint.Style; | |
| import android.util.AttributeSet; | |
| import android.view.View; |
NewerOlder