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 | |
set -e | |
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
trap 'echo FAILED COMMAND: $previous_command' EXIT | |
#------------------------------------------------------------------------------------------- | |
# This script will download packages for, configure, build and install a GCC cross-compiler. | |
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
# If you get an error and need to resume the script from some point in the middle, | |
# just delete/comment the preceding lines before running it again. |
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 java.io.*; | |
import java.util.ArrayList; | |
import java.util.Random; | |
public class Main { | |
public static void main(String[] args) { | |
ArrayList<Integer> exArr = generateSortedIntArr(10000); | |
ArrayList<Integer> exArrTemp = new ArrayList<>(exArr); |
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
from scipy.spatial import distance as dist | |
from imutils.video import VideoStream | |
from imutils import face_utils | |
import imutils | |
import dlib | |
import cv2 | |
import tkinter as Tkinter | |
import threading | |
btnArr = [] |
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 boolean checkPermission() { | |
return ContextCompat.checkSelfPermission(MainActivity.this, | |
android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager. | |
PERMISSION_GRANTED; | |
} | |
private void requestPermission() { | |
if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this, | |
android.Manifest.permission.WRITE_EXTERNAL_STORAGE)) { | |
Toast.makeText(MainActivity.this, "Write External Storage permission allows us to " + |
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 time | |
from appium import webdriver | |
"Setup for the test" | |
desired_caps = {} | |
desired_caps['platformName'] = 'Android' | |
desired_caps['platformVersion'] = '10.0' | |
desired_caps['deviceName'] = 'Huawei P40 Lite API 29' | |
# beware targeted app must be installed first, and since the app is already installed, launch test using package and activity name | |
desired_caps['appPackage'] = 'com.example.xxyy' |