background preloader

Script

Facebook Twitter

AWK

Sikuli – Faites vos scripts visuels. Sikuli – Faites vos scripts visuels Si vous devez réaliser quelques petits scripts automatisés qui consistent à faire cliquer la souris un peu partout, et que vous ne voulez pas vous lancer dans du code de macro trop complexe, sachez qu'il existe un petit outil baptisé Sikuli, qui tourne sous Windows, Mac et Linux et qui permet de créer ce genre de script, simplement en prenant des captures écran.

Sikuli – Faites vos scripts visuels

Oui, ça peut sembler étranger et c'est pourtant ce que fait ce logiciel. Au lieu de lui dire "Click sur le bouton1 de l'application MachinTruc", on lui dit "Click sur ____ (et là on met une capture écran du bouton)". Amusant non ? Voici une démo en vidéo pour que vous puissiez mieux vous rendre compte de la puissance du truc :

Python

Regex search and replace example scripts - Python Testing. Search and replace is such a common task that it should be a tool that’s in every command line script author’s toolbox.

regex search and replace example scripts - Python Testing

There are probably endless solutions to the problem. I’ve put together my standard methods for tackling the problem. I’ll also show similar Perl versions, mainly for comparisons. use models In most of the following discussion, I’m just replacing ‘foo’ with ‘bar’.However ‘foo’ can be ANY regular expression. The dummy situation I’m going to set up is this.

Foo foo fiddle foo and baz too, as well as foo I realize that I want to replace ‘foo’ with ‘bar’. I’d like to be able to have a script that runs in a way that I can either pipe the contents of the file into the script, or just give a file name to the script, like this: cat example.txt | python search_replace.pypython search_replace.py example.txt Now, I may or may not want to have the script modify the file in place. Using Python Search and replace as a filter This handles the case where we don’t want to modify the file. #!

Perl

Google CL command Line. Ant - Frequently Asked Questions. Questions About this FAQ General Installation How do I ...

Ant - Frequently Asked Questions

It doesn't work (as expected) Apache Ant and IDEs/Editors Advanced Issues Known Problems Answers Where do I find the latest version of this document? The latest version can always be found at Apache Ant's homepage How can I contribute to this FAQ? The page you are looking it is generated from this document. Patches can be created by the svn diff command. How do you create the HTML version of this FAQ? We use Anakia to render the HTML version from the original XML file. The Velocity stylesheets used to process the XML files can be found in the sources/stylesheets subdirectory of Ant's site SVN repository - the build file build.xml at the top level of the ant site SVN module is used to drive Anakia. Ant - Frequently Asked Questions. Questions.

Ant - Frequently Asked Questions

Ant - Frequently Asked Questions. Exec Task. Description Executes a system command.

Exec Task

When the os attribute is specified, then the command is only executed when Apache Ant is run on one of the specified operating systems. Note that you cannot interact with the forked program, the only way to send input to it is via the input and inputstring attributes. Also note that since Ant 1.6, any attempt to read input in the forked program will receive an EOF (-1). This is a change from Ant 1.5, where such an attempt would block. If you want to execute an executable using a path relative to the project's basedir, you may need to use vmlauncher="false" on some operating systems - but even this may fail (Solaris 8/9 has been reported as problematic).

<property name="executable-full-path" location=".. Windows Users The <exec> task delegates to Runtime.exec which in turn apparently calls ::CreateProcess. Note that .bat files cannot in general by executed directly. A common problem is not having the executable on the PATH. Cygwin Users OpenVMS Users #! The Programming Language Lua. Lua. Un article de Wikipédia, l'encyclopédie libre. Créé en 1993, il est conçu de manière à pouvoir être embarqué au sein d'autres applications afin d'étendre celles-ci, comme en témoigne la compacité de son interpréteur (95 à 185 ko pour la version 5.0.2, selon le compilateur utilisé et le système cible).

Lua (qui signifie « Lune » en portugais) a été développé par Luiz Henrique de Figueiredo, Roberto Ierusalimschy (en) et Waldemar Celes, membres du groupe de recherche TeCGraf, de l'université pontificale catholique de Rio de Janeiro au Brésil. Il est particulièrement apprécié pour le développement de jeux vidéo comme pour l'interface du jeu World of Warcraft de Blizzard Entertainment, pour Garry's Mod ou Far Cry (et le moteur CryEngine en général) de Crytek Studios, voire encore pour SimCity 4 et Natural Selection 2 de Unknown Worlds Entertainment qui a entre autres développé Decoda, un IDE pour Lua. Lua a été porté dernièrement sur la console portable de Sony, la PSP.