$ python3 revoke_permission.py
$ python3 revoke_permission.py <device_code>
This file contains 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
<key>Customized</key> | |
<dict> | |
<key>Duplicate Lines</key> | |
<string>selectLine:, copy:, moveToEndOfLine:, paste:, deleteBackward:</string> | |
<key>Duplicate Current Line</key> | |
<string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string> | |
<key>Start New Line</key> | |
<string>moveToEndOfLine:, insertNewline:</string> | |
<key>Start New Line Above</key> | |
<string>moveUp:, moveToEndOfLine:, insertNewline:</string> |
This file contains 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
apply from: 'release.gradle' | |
android{ | |
productFlavors { | |
dev { | |
//... | |
} | |
//... | |
} |
This file contains 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
//module gradle | |
apply from: 'versionCode.gradle' //anywhere | |
android { | |
defaultConfig { | |
versionName VERSION_NAME | |
versionCode Integer.parseInt(VERSION_CODE) | |
} | |
} |
This file contains 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 scrapy | |
from crawler.items import CommentItem | |
from crawler.items import PostItem | |
class TinhteSpider(scrapy.Spider): | |
name = "tinhte" | |
allowed_domains = ["tinhte.vn"] | |
start_urls = [ |
This file contains 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
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 |
This file contains 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
elem = document.createElement("div"); | |
elem.style.position="absolute"; | |
elem.style.width="30px"; | |
elem.style.height="30px"; | |
elem.style.zIndex="9999999999"; | |
elem.style.background="#f00"; | |
elem.style.pointerEvents="none"; | |
document.body.appendChild(elem); | |
document.onmousemove = function(e){ | |
elem.style.left = e.x - 15; |
This file contains 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
private SparseArray<View> mViewStubSparseArray; | |
/** | |
* Find view inside ViewStub layout | |
* | |
* @param stubId | |
* @param viewId | |
* @param <T> | |
* @return | |
*/ |
This file contains 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 com.notabasement.common.photopicker.events; | |
import android.content.Context; | |
/** | |
* Created by tuanchauict on 3/16/16. | |
*/ | |
public abstract class RotateOrientationEventListener extends SimpleOrientationEventListener { | |
public RotateOrientationEventListener(Context context) { | |
super(context); |
This file contains 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.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; |