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
| using Luxor | |
| function jump_circles() | |
| setline(12) | |
| setlinecap("round") | |
| line(Point(20, 68), Point(120, 28), :stroke) | |
| line(Point(4, 120), Point(120, 4), :stroke) | |
| pts = box(Point(86, 84), 40, 40, vertices=true) | |
| @layer begin | |
| sethue(Luxor.julia_red) |
| using JuMP, Ipopt | |
| function minimize( | |
| f::Function, | |
| A::Matrix, | |
| b::Vector, | |
| optimizer::JuMP.OptimizerFactory | |
| ) | |
| M, N = size(A) | |
| @assert length(b) == M |
| $ julia | |
| _ | |
| _ _ _(_)_ | Documentation: https://docs.julialang.org | |
| (_) | (_) (_) | | |
| _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | |
| | | | | | | |/ _` | | | |
| | | |_| | | | (_| | | Version 1.1.0 (2019-01-21) | |
| _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release | |
| |__/ | |
| void | |
| forloop_structures::iinit() | |
| { | |
| // INTERMEDIATE | |
| // NEED TEMP | |
| // INITIAL LOCALS |
| package | |
| { | |
| import flash.display.Sprite; | |
| import flash.utils.getTimer; | |
| public class forloop_structures extends Sprite | |
| { | |
| public function forloop_structures(){ | |
This is a bash script, as an example, on how to do click-testing GUI based on finding components based on how they look.
#How to download an MP3 track from a YouTube video You can also download the mp3 directly from youtube without converting using ffmpeg
youtube-dl --extract-audio --audio-format mp3 <video URL>
From the online help:
-x, --extract-audio convert video files to audio-only files (requires
ffmpeg or avconv and ffprobe or avprobe)
| #!/usr/bin/env python | |
| """ | |
| Use byzanz to create a GIF screencast of a specific window. | |
| Required tools: | |
| sudo apt-get install byzanz x11-utils xdotool | |
| A tip: use an extra-long duration (-d 100), record your shot, and use | |
| gimp to shorten the duration of the last frame. You need to rename the layer | |
| from "Frame 123 (100000 ms) (combine)" to "Frame 123 (1000 ms) (combine)". |
| ;; Generating static HTML using Clojure macros | |
| ;; It is possible to write a DSL in Clojure that generates HTML markup without the need to write a separate parser and compiler (e.g. HAML). | |
| ;; Our aim here would be to write code that converts the following Clojure code into the HTML below it | |
| ;; (html | |
| ;; (head) | |
| ;; (body | |
| ;; (h1 "An example") |