A simple script for adding a jump key (N
/ B
) with two guidelines to help reading on PC easier.
The progress is also more trackable with page and percent
A simple script for adding a jump key (N
/ B
) with two guidelines to help reading on PC easier.
The progress is also more trackable with page and percent
using DocumentFormat.OpenXml; | |
using DocumentFormat.OpenXml.Packaging; | |
using DocumentFormat.OpenXml.Spreadsheet; | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.IO; | |
using System.IO.Packaging; | |
using System.Linq; | |
using System.Reflection; |
Install the following apps on your mac running macOS:
Modified from: https://www.moncefbelyamani.com
https://statici.icloud.com/fmipmobile/deviceImages-9.0/iPhone/iPhone9,4-2-3-0/online-infobox__3x.png | |
A B C D E F G | |
A: deviceImages version seems to determine the format of the image specifier (C, D, E, F) | |
B: device marketing name | |
C: device model identifier | |
D: color cover glass (front color) | |
1 - Black | |
2 - White | |
E: device enclosure color (back color) |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
adb shell << 'END' | |
run-as <package_id> | |
chmod 777 shared_prefs/<prefs_file_name>.xml | |
exit | |
cp /data/data/<package_id>/shared_prefs/<prefs_file_name>.xml /sdcard/Download/prefs.xml | |
exit | |
END |
$ python3 revoke_permission.py
$ python3 revoke_permission.py <device_code>
import android.content.pm.PackageManager; | |
import android.os.Build; | |
import android.support.annotation.NonNull; | |
import android.support.v4.app.ActivityCompat; | |
import android.support.v4.content.ContextCompat; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.SparseArray; | |
import java.util.ArrayList; |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.util.AttributeSet; | |
import android.widget.FrameLayout; | |
/** | |
* Created by tuanchauict on 11/18/15. | |
*/ | |
public class AspectRatioFrameLayout extends FrameLayout { | |
private static final float DEFAULT_RATIO = 109.33f / 144f; |
/* | |
* Copyright (C) 2015 Tuan Chau (tuanchauict) | |
* | |
* 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 |