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
function [ sdTimesteps ] = fnCalcD3DTimesteps( nfs ) | |
%FNCALCD3DTIMESTEPS Work out dates of D3D timesteps | |
% Function to take an "nfs" object (a Delft3D data file opened with | |
% vs_use) and output an array of MATLAB serial dates corresponding to the | |
% output timesteps in the file. | |
% Requires Delft3D MATLAB toolbox. | |
% Simon Waldman / Heriot-Watt University 2016 |
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/sh | |
# this script does absolutely ZERO error checking. however, it worked | |
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers | |
# and/or URLs should be made variables. cheers, [email protected] | |
mkdir mosh | |
cd mosh |
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 | |
# make sure we are in the right directory; | |
# save previous directory | |
oldpwd=$PWD | |
cd $LJHOME | |
oldbranch1=$(git symbolic-ref --short -q HEAD) | |
# pull changes from dreamwidth |
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/sh | |
if diff "$1" "$1.tmp" > /dev/null; then | |
echo >&2 Aborting commit due to unchanged commit message. | |
rm "$1.tmp" | |
exit 1 | |
else | |
rm "$1.tmp" | |
fi |