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
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
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
| from __future__ import division | |
| from scene import * | |
| from math import sqrt, pi | |
| import sound | |
| button_pad = [['ans', 'pi', 'sqrt(', '%'], | |
| ['(', ')', '*', '/'], | |
| ['7', '8', '9', '-'], | |
| ['4', '5', '6', '+'], | |
| ['1', '2', '3', '='], |
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 python2 | |
| # | |
| # chaos - jzhu98 | |
| # See bottom for license. | |
| # | |
| from __future__ import division | |
| from enum import Enum |
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 read_molecule(reader): | |
| line=reader.readline() | |
| if not line: | |
| return None | |
| while not line.startswith('COMPND'): | |
| line=reader.readline() | |
| key, name = line.split() | |
| molecule=[name] | |
| line = reader.readline() |
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
| import sys | |
| pro_gro = sys.argv[1] | |
| lig_gro = sys.argv[2] | |
| pro = open(pro_gro,'r').readlines() | |
| lig = open(lig_gro,'r').readlines() | |
| pro_dat = [line.rstrip() for line in pro] | |
| lig_dat = [line.rstrip() for line in lig] | |
| tot_num = int(pro_dat[1])+int(lig_dat[1]) | |
| com_dat = [pro_dat[0],'%5d'%tot_num]+pro_dat[2:-1] + lig_dat[2:-1] + [pro_dat[-1]] | |
| for line in com_dat: print line |
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 | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |