date
This file contains hidden or 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
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
| "width": 800, | |
| "height": 600, | |
| "title": {"text": "2x^3 - 4x^2 + 6", "fontSize": 20, "fontWeight": "normal"}, | |
| "layer": [ | |
| { | |
| "data": {"sequence": {"start": -4, "stop": 4, "step": 0.1, "as": "x"}}, | |
| "transform": [ | |
| { |
This file contains hidden or 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
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
| "width": 800, | |
| "height": 600, | |
| "layer": [ | |
| { | |
| "data": {"sequence": {"start": -20, "stop": 20, "step": 0.1, "as": "x"}}, | |
| "transform": [ | |
| { | |
| "calculate": "datum.x * datum.x * datum.x - datum.x * datum.x + 2", |
This file contains hidden or 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
| [tool.poetry] | |
| name = "evaluate-gc" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["Stefan Verhoeven <stefan.verhoeven@gmail.com>"] | |
| [tool.poetry.dependencies] | |
| python = "^3.6" | |
| celery = {extras = ["redis"], version = "^4.4.5"} |
This file contains hidden or 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
| def simfun1(factor=3.0): | |
| # just some nonsense to demonstrate usage of a parameter | |
| # when comparing 2 spectrums | |
| def implementation(spectrum, reference_spectrum): | |
| print(spectrum) | |
| print(reference_spectrum) | |
| print(factor) | |
| return (max(spectrum) + max(reference_spectrum) ) * factor; |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import argparse | |
| import os | |
| import yaml | |
| from ecmwfapi import ECMWFDataServer | |
| parser = argparse.ArgumentParser(description=''' | |
| Script to download era-interim files so it can be cmorized and used by esmvaltool recipes. |
. ~/miniconda3/bin/activate rsd
# in new shell
git clone git@github.com:research-software-directory/auth-github.git
cd auth-github
# Created Github oauth app with http://localhost:8000 as callback
# Filled .env with random JWT_SECRET and GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
pip install -r requirements.txt
export $(cat .env | xargs)
python app.py
This file contains hidden or 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
| """Script to swap donor/acceptor in pharmacophore database file | |
| original enum is | |
| Enum({'LIPO': 0, 'POSC': 1, 'HACC': 4, 'NEGC': 2, 'AROM': 5, 'HDON': 3}) | |
| corrected enum is | |
| Enum({'LIPO': 0, 'POSC': 1, 'HACC': 3, 'NEGC': 2, 'AROM': 5, 'HDON': 4}) | |
| """ | |
| import sys |
Convert GENEActiv file to json for use in https://github.com/NLeSC/eEcology-Annotation-UI
R libraries:
- GENEAread
- littler
- docopt
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.