This is a bash script, as an example, on how to do click-testing GUI based on finding components based on how they look.
- opencv
- scrot
- findimage
- xdotool
This is a bash script, as an example, on how to do click-testing GUI based on finding components based on how they look.
| #!/usr/bin/python | |
| import sys | |
| ''' | |
| Just a simple tool that adds the line number at | |
| the end of each line | |
| ''' | |
| with open(sys.argv[1]) as f_in, open(sys.argv[2], 'w') as f_out: |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| function bam_chromosomes() { | |
| # Fetch chromosomes from a bam file | |
| samtools view -H $1 | \ | |
| grep -Po 'SN:(.*)\t' | \ | |
| cut -c 4-1000 | |
| } |
| # author: | |
| # @Bartosz Kosarzycki | |
| # | |
| sudo apt-get install npm | |
| sudo npm install -g react-native-cli | |
| sudo ln -s /usr/bin/nodejs /usr/bin/node | |
| cd /home/user/your/project/path | |
| react-native init AwesomeProject | |
| cd AwesomeProject |
| """ | |
| Disable registration/signup | |
| """ | |
| #models.py | |
| from allauth.account.adapter import DefaultAccountAdapter | |
| class MyAccountAdapter(DefaultAccountAdapter): | |
| def is_open_for_signup(self, request): | |
| return False | |
| from __future__ import unicode_literals, print_function, absolute_import | |
| from gi.repository import Gio | |
| import os.path | |
| VALID = {'toplevel': ('expand', 'size', 'orientation'), | |
| 'launcher': ('object-type', 'launcher-location', 'locked', 'menu-path', 'position', 'toplevel-id'), | |
| 'applet': ('object-type', 'applet-iid', 'toplevel-id', 'position', 'locked'), | |
| 'menu-bar': ('object-type', 'applet-iid', 'toplevel-id', 'position', 'locked'), | |
| 'menu': ('object-type', 'toplevel-id', 'position', 'locked'), | |
| 'action': ('object-type', 'action-type', 'position', 'toplevel-id'), |
| ssh -f -N -L 1233:remote.host:22 gateway.host | |
| sshfs -p 1233 vsudilov@localhost:/nfs_mount /local/mountpoint -o reconnect |
| library(ggplot2) | |
| setwd("<my working directory>") | |
| removeExtraLine <- function(x) { | |
| x[,2:length(x)] | |
| } | |
| createInitialDataset <- function(x, sampleName) { | |
| extraLineRemoved <- t(removeExtraLine(x)) |