This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Get a list of directories within a directory | |
find: | |
paths: | |
- "{{ parent_dir_name }}" | |
file_type: directory | |
depth: 1 | |
register: list_of_dirs | |
- name: Iterate over list of dirs | |
debug: | |
msg: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import argparse | |
# Adapted from this gist by natefoo: https://gist.github.com/natefoo/7a13e5bf6f4bbf961db73a3d6e9f9e1c | |
# and https://github.com/galaxyproject/galaxy/blob/release_21.01/lib/galaxy/tool_util/deps/conda_util.py | |
def main(): | |
parser = argparse.ArgumentParser(description='Get a Galaxy style virtual environment name from a list of conda requirements') | |
parser.add_argument('requirements', help='One or more conda requirements e.g. balloon=1.1 or fish=0.0+galaxy6', nargs='+') | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |