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
# Built user paths in two parts | |
# Most important paths get prefixed in order of (least important) -> (most) | |
for dir in ~/bin | |
do | |
check=`expr "$PATH" : ".*:${dir}:.*" + \ | |
"$PATH" : "${dir}:.*" + \ | |
"$PATH" : ".*${dir}$"` | |
if [ $check = 0 ] | |
then |
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
#include <stdio.h> | |
#include <time.h> | |
#include <omp.h> | |
int main ( void ) { | |
int i, j; | |
int me, n; | |
#pragma omp parallel private(i,j,me,n) | |
{ |
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 | |
import re | |
import sys | |
SHOW = """ | |
Siloxane SiO4 Si3O SiO3 | |
SiO2 SiO1 NBO FreeOH | |
H2O H3O SiOH SiOH2 Si2OH |
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 perl | |
use utf8; | |
use strict; | |
use warnings; | |
my @show = qw/Siloxane SiO4 Si3O SiO3 SiO2 SiO1 NBO FreeOH H2O H3O SiOH SiOH2 Si2OH/; | |
my %type; | |
@type{@show} = (0) x @show; |
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 | |
import fileinput | |
import re | |
show = [ "Siloxane", "SiO4", "Si3O", "SiO3", \ | |
"SiO2", "SiO1", "NBO", "FreeOH", \ | |
"H2O", "H3O", "SiOH", "SiOH2", "Si2OH" ] | |
def printargs( counts, isave ): |
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/perl | |
@show = qw/ Siloxane SiO4 Si3O SiO3 SiO2 SiO1 NBO FreeOH H2O H3O SiOH SiOH2 Si2OH/; | |
printf("\n%-8.8s ", "ird"); | |
foreach $specie ( @show ) | |
{ | |
printf("%8.8s ", $specie); | |
} | |
print "\n"; |
NewerOlder