Original articles by Mark Leair, PGI Compiler Engineer
This is Part 1 of a series of articles:
#!/usr/bin/env zsh | |
# This script prints a bell character when a command finishes | |
# if it has been running for longer than $zbell_duration seconds. | |
# If there are programs that you know run long that you don't | |
# want to bell after, then add them to $zbell_ignore. | |
# | |
# This script uses only zsh builtins so its fast, there's no needless | |
# forking, and its only dependency is zsh and its standard modules | |
# |
Original articles by Mark Leair, PGI Compiler Engineer
This is Part 1 of a series of articles:
Original article by Mark Leair, PGI Compiler Engineer
Note: This article was revised in March 2015 and again in January 2016 to bring it up-to-date with the production software release and to correct errors in the examples.
This is Part 2 of a series of articles:
e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
import argparse | |
if __name__ == "__main__": | |
parser = argparse.ArgumentParser(description='Easy way to produce plots of\ | |
3D vector fields in python.') | |
parser.add_argument('task', | |
help='task name', | |
type=str) | |
parser.add_argument("-f", '--fileNameTag', | |
help='Appends it to the end of a filename so it can be unique when you plot it', |
#!/usr/bin/env python | |
import argparse | |
def main(command_line=None): | |
parser = argparse.ArgumentParser('Blame Praise app') | |
parser.add_argument( | |
'--debug', | |
action='store_true', | |
help='Print debug info' |
module counter2 | |
implicit none | |
type element | |
character(len=16) :: s | |
integer :: e1, e2 | |
end type element | |
contains | |
function count_unique(s) result(c) |
import os | |
import sys | |
import configparser | |
import argparse | |
from datetime import datetime | |
from netCDF4 import Dataset | |
# Add attributes to a topography file created by Peter's Topo Tool. |