Profile
Achievement
alces's Recent Snippets
- All /
« Prev 1 Next »
Flatten a list of lists (or tuple of tuples, list of tuples, etc.) to any depth of nesting using no mutable objects.
1
1345
posted 9 years ago by alces
Usage:
1. save the snippet as *fabfile.py*
2. and run:
**$ fab -H myhost1,myhost2...**
or set *env.roledefs['myrole'] = ['myhost1', 'myhost2', ...]* in *fabfile.py* and run this way:
**$ fab -R myrole**
0
1112
posted 10 years ago by alces
Example of JAXB-annotated POGO, marshalled and unmarshalled via static methods of JAXB object.
0
1374
posted 10 years ago by alces
Groovy script for hudson's scripler/script console (for latter case import line could be removed) aborting running builds with loo large logs.
0
984
posted 11 years ago by alces
Custom task using gradle java plugin for build runnable jar file with full dependencies set
0
1061
posted 11 years ago by alces
Gets "src" attributes from all "img" tags in RSS entries descriptions
0
1024
posted 11 years ago by alces
Reads CBC news RSS with fancy-prints its in table, splitting news description by image & text.
0
1037
posted 11 years ago by alces