Skip to content

Instantly share code, notes, and snippets.

View sirmordred's full-sized avatar

Oğuzhan Yiğit sirmordred

View GitHub Profile
@sirmordred
sirmordred / build_cross_gcc
Created May 5, 2016 23:57 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /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.
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);
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 = []
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 " +
@sirmordred
sirmordred / appium_record_sample.py
Last active June 17, 2022 14:57
Appium Recording Sample
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'