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
| #!/bin/bash | |
| CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb" | |
| wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG} | |
| sudo dpkg -i ${CUDA_REPO_PKG} | |
| sudo apt-get update | |
| sudo apt-get -y install cuda-8-0 | |
| #nvidia-smi | |
| echo 'export PATH=$PATH:$CUDA_HOME/bin' >> ~/.bashrc | |
| echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CUDA_HOME/lib64' >> ~/.bashrc |
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
| @echo off & python -x "%~f0" %* & goto :eof | |
| # ========================================================== | |
| # one way to place python script in a batch file | |
| # place python code below (no need for .py file) | |
| # ========================================================== | |
| import sys | |
| print "Hello World!" | |
| for i,a in enumerate(sys.argv): |
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
| #! /bin/bash | |
| GCC_VERSION="5.2.0" | |
| WORKDIR="$HOME/src/" | |
| INSTALLDIR="/platform" | |
| ## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools. | |
| ## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files. | |
| # xcode-select --install |
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
| #Data from Problem 1 Chapter 4 from | |
| #Biochemical Calculations by Irwin H Segel | |
| #Set the initial values and get a data.frame | |
| S <- c(2.5e-06, 3.33e-06, 4.0e-06, 5.0e-06, 1.0e-05, 2.0e-05, 4.0e-05, 1.0e-04, 2.0e-03, 1.0e-02) | |
| v <- c(24, 30, 34, 40, 60, 80, 96, 109, 119, 120) | |
| data.frame(S, v) -> datos.cinetica | |
| #Plot the raw data | |
| plot(datos.cinetica, type="l", main="V Vs. S", xmain="S", ymain="v") |