busctl --user call org.inkscape /org/inkscape/document_0 org.inkscape.document ellipse iiii 0 0 20 40
busctl --user call org.inkscape /org/inkscape/document_0 org.inkscape.document get_children "s" layer1
| fn arrange(&self, ui: &mut Ui, state: &mut DashboardState, repulsion_steps: usize, compaction_steps: usize) { | |
| if state.block_rect.is_empty() { | |
| return; | |
| } | |
| let original = state.block_rect.clone(); | |
| let mut debug_copy = state.block_rect.clone(); | |
| let rects = &mut state.block_rect; | |
| let keys: Vec<BlockKey> = rects.keys().collect(); | |
| let keys = keys.iter().copied(); |
busctl --user call org.inkscape /org/inkscape/document_0 org.inkscape.document ellipse iiii 0 0 20 40
busctl --user call org.inkscape /org/inkscape/document_0 org.inkscape.document get_children "s" layer1
| // sources: | |
| // https://xcb.freedesktop.org/tutorial/events/ | |
| // https://xcb.freedesktop.org/manual/group__XCB____API.html | |
| // https://github.com/wmutils/opt/blob/master/wew.c | |
| // | |
| // compile with: | |
| // gcc focus.c -lxcb | |
| #include <stdlib.h> | |
| #include <stdio.h> |
| cmake_minimum_required(VERSION 3.5) | |
| set(CMAKE_CXX_STANDARD 11) | |
| project(demo LANGUAGES CXX) | |
| SET("OpenCV_DIR" "...../opencv4/opencv") | |
| find_package( OpenCV REQUIRED ) | |
| MESSAGE(STATUS "Include dirs ${OpenCV_INCLUDE_DIRS}") | |
| MESSAGE(STATUS "LINK LIBRARIES ${OpenCV_LIBS}") | |
| find_package(al-runtime) |
| # view the desktop into a window on Linux | |
| gst-launch-1.0 ximagesrc startx=1920 use-damage=0 \ | |
| ! video/x-raw,framerate=30/1 \ | |
| ! videoscale method=0 \ | |
| ! video/x-raw,width=1920,height=1080 \ | |
| ! ximagesink | |
| # view the desktop into a window on MacOS | |
| gst-launch-1.0 avfvideosrc capture-screen=true \ |
Les données retournées sont au format XML.
Document trouvé et modifié depuis Pastebin.
| var casper = require('casper').create(); | |
| casper.start('http://www.bibus.fr/horaires-station-navitia.aspx', function() { | |
| this.echo(this.getTitle()); | |
| }); | |
| casper.run(); | |
| // fill form | |
| casper.then(function(){ |
Delayed timer for each rotating element.
A Pen by Brandon Brule on CodePen.