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
| ### Install pypar | |
| # Assign user name | |
| read -p "Enter your user name: " UserName | |
| # update all | |
| apt-get update | |
| apt-get -y upgrade | |
| # Pypar |
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
| ## ## ## matplotlib_example.py ## ## ## | |
| ## ## ## Created by: KDP ## ## ## | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| ## Create data | |
| x = np.linspace(0, 4 * np.pi, num=100) | |
| y = np.sin(x) |
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 | |
| ### Fresh install for a new Ubuntu derivative | |
| # Assign user name | |
| read -p "Enter your user name: " UserName | |
| read -p "Enter your full name: " MyName | |
| read -p "Enter your email address: " MyEmail | |
| # update all | |
| apt-get update |
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 | |
| ### Fresh install for a new Ubuntu derivative | |
| # Assign user name | |
| read -p "Enter your user name: " UserName | |
| read -p "Enter your full name: " MyName | |
| read -p "Enter your email address: " MyEmail | |
| # update all | |
| apt-get update |
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
| # Display system information using archey | |
| /usr/bin/archey | |
| # Installed Packages | |
| export PATH=${PATH}:/opt/lammps/src | |
| export PATH=${PATH}:/opt/gulp/Src | |
| export PATH=${PATH}:/opt/zotero | |
| export PATH=${PATH}:/opt/LD_300 | |
| export PATH=${PATH}:/usr/local/matlab/R2012a/bin |
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 | |
| ### Lammps parallel install | |
| # Assign user name | |
| read -p "Enter your user name: " UserName | |
| # Install required packages | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential openmpi-bin openmpi-doc libopenmpi-dev fftw2 fftw-dev |
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 swap(array, index1, index2): | |
| t = np.copy(array[index1]) | |
| array[index1] = array[index2] | |
| array[index2] = t | |
| return array |
NewerOlder