Показаны сообщения с ярлыком example. Показать все сообщения
Показаны сообщения с ярлыком example. Показать все сообщения

среда, 5 июня 2013 г.

Programming for fun: script for batch installation of maven artifacts

I created gradle script that delivers batch installation of maven artifacts to local maven repository (source code here: https://github.com/akhikhl/contribs).

The script supports two tasks - installContribs and cleanContribs - but can be extended with additional tasks (for example, implementing deployment to corporate repo).

how installContribs task works:

1. you call it with the command-line:

gradle -b contribs.gradle 
(or you rename script to "build.gradle" and just put it somewhere in the multi-project tree, it will be called by gradle automatically).

2. installContribs task iterates the current folder (where the script resides) and all it's subfolders.

3. in each folder it iterates files with extension "pom".

4. for each found pom-file it looks for ".jar", "-sources.jar" and "-javadoc.jar" and install all found files (together with pom) to the local maven repository.

5. pom-file without jars will be installed as an artifact on it's own. Typical use-case: installation of parent-poms and aggregator-poms.

The script accurately calculates inputs/outputs. If all files were not changed since the last installation, it does not install anything and shows "UP-TO-DATE" in the console.

cleanContribs task makes script "forget" about the time of the last artifact installation. As the result, running script with installContribs task will install all artifacts anew.

суббота, 1 июня 2013 г.

checkableRows example (jQuery)

Example of checkableRows, selectableRows and focusable behavior

Example of checkableRows, selectableRows and focusable behavior.

Use mouse, UP, DOWN and SPACE keys.
Allow multiple selection (click with CTRL or SHIFT key).
Product IdArtistAlbumYearI like it
001BeatlesPlease Please Me1963
002BeatlesA Hard Day's Night1964
003BeatlesYellow Submarine1969
004Rolling StonesDecember's Children (And Everybody's)1965
005Rolling StonesBeggars Banquet1968
006Rolling StonesGoats Head Soup1973
Selected product Ids: []
Checked product Ids: []
Log:
If you feel interested, see checkableRows source code and documentation and more examples on a separate page.

четверг, 30 мая 2013 г.

Sash/splitter example (javascript)

jQuery Sash Plugin example I created jQuery Sash Plugin. This example demonstrates how it works. Just drag gray bar to left and right.
left panel
right panel
If you feel interested, see source code and documentation and more examples on a separate page.

среда, 29 мая 2013 г.

selectableRows behavior (javascript)

Simplest example of selectableRows behavior
Example of selectableRows behavior on table element. Click within the table to see how it works.
ArtistAlbumYear
BeatlesPlease Please Me1963
BeatlesA Hard Day's Night1964
BeatlesYellow Submarine1969
Rolling StonesDecember's Children (And Everybody's)1965
Rolling StonesBeggars Banquet1968
Rolling StonesGoats Head Soup1973
If you feel interested, have a look at the source code and documentation
See more examples of selectableRows on a separate page.

focusable behavior (javascript)

Simplest example of focusable behavior
Below is the simplest example of "focusable" behavior. Three divs have "focusable" class and can get "focused" class from mouse clicks or from keyboard navigation to nested elements.
If you feel interested, have a look at the source code and documentation
See also this example on a separate page.