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 gist. | |
There are many like it, but this one is mine. | |
It is my life. | |
I must master it as I must master my life. | |
Without me gist is useless. | |
Without gist, I am useless. |
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
(ns logic.y | |
(:refer-clojure :exclude [== reify inc]) | |
(:use [clojure.core.logic minikanren prelude | |
nonrel match])) | |
(defna findo [x l o] | |
([_ [[?y :- o] . _] _] | |
(project [x ?y] (== (= x ?y) true))) | |
([_ [_ . ?c] _] (findo x ?c o))) |
# This makefile will let the Android NDK build a | |
# libchipmunk.so to go with your 2D Android game. | |
# download the Chipmunk sources and do | |
# $ cd <chipmunk-physics> | |
# $ git checkout Chipmunk-6.0.3 # if you downloaded from source | |
# $ mkdir -p modules/chipmunk && cd modules/chipmunk | |
# $ cat >Android.mk <<EOF | |
LOCAL_HOME := $(dir $(lastword $(MAKEFILE_LIST))) |
;; based on core.logic 0.8-alpha2 or core.logic master branch | |
(ns sudoku | |
(:refer-clojure :exclude [==]) | |
(:use clojure.core.logic)) | |
(defn get-square [rows x y] | |
(for [x (range x (+ x 3)) | |
y (range y (+ y 3))] | |
(get-in rows [x y]))) |
/*! | |
* jQuery JavaScript Library v2.1.1pre | |
* http://jquery.com/ | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ | |
* | |
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors | |
* Released under the MIT license | |
* http://jquery.org/license |
## Provides utility methods to make working with bit manipulations | |
## easier and less error prone | |
const | |
validBitfieldType = ["int", "int8", "int16", "int32", "int64", "uint", | |
"uint8", "uint16", "uint32", "uint64", "bool"] | |
macro bitfield(values: varargs[stmt]): stmt = | |
## Creates a bitfield with the given fields | |
# Validate and initial parameter processing | |
if values.len %% 3 != 0: | |
error("Each field requires three values") |
import macros | |
proc procToLambda(input: PNimrodNode): PNimrodNode {.compiletime.} = | |
# Ident !"foo" | |
# Empty | |
# Empty | |
# FormalParams | |
# Ident retType | |
# IdentDefs | |
# ... |
This is a bash script, as an example, on how to do click-testing GUI based on finding components based on how they look.
Name | Ownership | Copyable | Movable | Sharing | Lifetime | Semantics |
---|---|---|---|---|---|---|
unique_ptr | Unique | ❌ | ✅ | ❌ | Lexical | Reference |
shared_ptr | Shared | ✅ | ✅ | Reference | Reference-counted | Reference |
weak_ptr | ❌ | ✅ | ✅ | ❌ | Non-extending | Optional-reference |
value_ptr | Unique | ✅ | ✅ | Value | Lexical | Value |