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
#!/usr/bin/env python | |
from sys import argv, exit, stdout | |
from time import sleep, time | |
from os import system | |
from subprocess import check_output, CalledProcessError | |
from threading import Thread, Event | |
from functools import partial | |
class StoppableThread(Thread): |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] | |
"DisableAntiSpyware"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] | |
"DisableBehaviorMonitoring"=dword:00000001 | |
"DisableOnAccessProtection"=dword:00000001 | |
"DisableScanOnRealtimeEnable"=dword:00000001 |
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
#!/bin/bash | |
# Originally written by Ralf Kistner <[email protected]>, but placed in the public domain | |
set +e | |
bootanim="" | |
failcounter=0 | |
timeout_in_sec=360 |
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
<a href="https://media.licdn.com/dms/image/C511FAQHSxF6jLy6d5g/feedshare-document-images_800/1?e=1564041600&v=beta&t=oW9zc4qHy_n_6MmFHoL8sSJwisiPjQDHZVT8odnrmHU">Page 1</a> | |
<a href="https://media.licdn.com/dms/image/C511FAQHSxF6jLy6d5g/feedshare-document-images_800/2?e=1564041600&v=beta&t=lFF_CS1FBZQh2NAQp5qeZoENbhdfZPjetLVukd2pB0A">Page 2</a> | |
<a href="https://media.licdn.com/dms/image/C511FAQHSxF6jLy6d5g/feedshare-document-images_800/3?e=1564041600&v=beta&t=R8BzvUX5ngwb3D4f3LBAMLDkQEqsbKYG0-JLiCHYx_I">Page 3</a> | |
<a href="https://media.licdn.com/dms/image/C511FAQHSxF6jLy6d5g/feedshare-document-images_800/4?e=1564041600&v=beta&t=QK6oT05ZmXBhVAMTfbgrajSC-oYUU_dADgbH3jYBFzM">Page 4</a> | |
<a href="https://media.licdn.com/dms/image/C511FAQHSxF6jLy6d5g/feedshare-document-images_800/5?e=1564041600&v=beta&t=S7sN6E-Us7LvtYprczVxAxldQ6OfNN2nec7Rj5MCUlk">Page 5</a> | |
<a href="https://media.licdn.com/dms/image/C511FAQHSxF6jLy6d5g/feedshare-document-images_800/6?e=1564041600&v=beta& |
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
/** | |
* Get full file path from external storage | |
* | |
* @param pathData The storage type and the relative path | |
*/ | |
private fun getPathFromExtSD(pathData: Array<String>): String { | |
val type = pathData[0] | |
val relativePath = "/" + pathData[1] | |
var fullPath: 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
val intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); | |
intent.addCategory(Intent.CATEGORY_OPENABLE); | |
intent.setType("*/*"); | |
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); | |
startActivityForResult(intent, 1) | |
// In code that handles the result returned to process the files: | |
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { | |
super.onActivityResult(requestCode, resultCode, data) |
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
General Definitions | |
Visible Lifecycle: The part of the Lifecycle between onStart and onStop when the Activity is visible. | |
Focus: An Activity is said to have focus when it's the activity the user can interact with. | |
Foreground: When the activity is on screen. | |
Background: When the activity is fully off screen, it is considered in the background. | |
Lifecycle States |
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
#!/usr/bin/python | |
''' | |
This script finds missing string translations in Android applicaitons. | |
Author: Kostya Vasilyev. License: Creative Commons Attribution. | |
The output format is, I believe, more suitable to working with external | |
translators than the output of Lint from the Android SDK. |
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
// TODO add <meta-data android:value="GlideModule" android:name="....OkHttpProgressGlideModule" /> | |
// TODO add <meta-data android:value="GlideModule" tools:node="remove" android:name="com.bumptech.glide.integration.okhttp.OkHttpGlideModule" /> | |
// or not use 'okhttp@aar' in Gradle depdendencies | |
public class OkHttpProgressGlideModule implements GlideModule { | |
@Override public void applyOptions(Context context, GlideBuilder builder) { } | |
@Override public void registerComponents(Context context, Glide glide) { | |
OkHttpClient client = new OkHttpClient(); | |
client.networkInterceptors().add(createInterceptor(new DispatchingProgressListener())); | |
glide.register(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(client)); | |
} |
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
http://alvinalexander.com/java/jwarehouse/apps-for-android/RingsExtended/src/com/example/android/rings_extended/ |