Skip to content

Instantly share code, notes, and snippets.

View mojtab23's full-sized avatar
🏠
Working from home

Mojtaba mojtab23

🏠
Working from home
View GitHub Profile
@jaykhimani
jaykhimani / LoggerExtension.java
Last active December 31, 2022 23:29
JUnit 5 Extension To Verify logging
package com.jak.sandbox;
import java.util.List;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.BeforeEachCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
@nstarke
nstarke / release-android-debuggable.md
Last active May 22, 2024 21:16
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable
@staltz
staltz / introrx.md
Last active June 7, 2024 23:39
The introduction to Reactive Programming you've been missing
@jewelsea
jewelsea / Clock.java
Created May 11, 2012 08:52
Sample of an animated clock in JavaFX
import javafx.animation.*;
import javafx.application.Application;
import javafx.event.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.effect.Glow;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;