Skip to content

Instantly share code, notes, and snippets.

@cat-bro
cat-bro / mulled-hash.py
Last active February 28, 2021 04:03 — forked from natefoo/mulled-hash.py
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()
@cat-bro
cat-bro / 0_reuse_code.js
Created June 2, 2017 01:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console