Flask apps are bound to port 5000 by default. To bind it to port 80, you would need to change the port as follows:
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, debug=True)And to run it:
| #https://stackoverflow.com/questions/36969824/using-anaconda-environments-with-cygwin-on-windows | |
| # Anaconda Environment Selection - Plese set CONDA_BASE_DIR to the directory | |
| # containing the base installation of anaconda/miniconda. | |
| export CONDA_BASE_DIR=/cygdrive/d/Anaconda3 | |
| # Proxy Servers & Network Setup (if needed) | |
| export HTTP_PROXY= | |
| export HTTPS_PROXY= |
Flask apps are bound to port 5000 by default. To bind it to port 80, you would need to change the port as follows:
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, debug=True)And to run it:
| #!/bin/bash | |
| # | |
| # CALL AS: lut_convertToFslview.sh | |
| # (no arguments: input and output files defined below) | |
| # | |
| # CREATED: 20130430 by stowler@gmail.com | |
| # LAST UPDATED: same | |
| # | |
| # | |
| # |
| #!/usr/bin/env bash | |
| # memusg -- Measure memory usage of processes | |
| # Usage: memusg COMMAND [ARGS]... | |
| # | |
| # Author: Jaeho Shin <netj@sparcs.org> | |
| # Created: 2010-08-16 | |
| ############################################################################ | |
| # Copyright 2010 Jaeho Shin. # | |
| # # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); # |
| var parser = document.createElement('a'); | |
| parser.href = window.location.href ; | |
| console.debug(parser.hostname) ; | |
| parser.hostname=parser.hostname+'.turing.library.northwestern.edu' ; | |
| console.debug(parser.href) ; | |
| window.location.href=parser.href ; |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| ''' | |
| Non-parametric computation of entropy and mutual-information | |
| Adapted by G Varoquaux for code created by R Brette, itself | |
| from several papers (see in the code). | |
| These computations rely on nearest-neighbor statistics | |
| ''' | |
| import numpy as np |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
ANTS : http://picsl.upenn.edu/ANTS/ c3d : http://www.itksnap.org/pmwiki/pmwiki.php?n=Convert3D.Convert3D
export PATH=/software/ANTS-dev:$PATH c3d_affine_tool -ref [A] -src [B] bbreg.mat -fsl2ras -oitk fsl2antsAffine.txt WarpImageMultiTransform 3 [B] [C] -R [D] [A_Warp].nii.gz [A_Affine].txt fsl2antsAffine.txt