This file contains 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 td = dc_delay(sys) | |
%DC_DELAY(SYS) calculate the DC (ramp) delay for a transfer function | |
% DC_DELAY(SYS) calculates the delay for a ramp signal subject to a | |
% unit-gain transfer function. The delay is constant for the transfer | |
% function, so the sole argument is the transfer function, sys. | |
% | |
% Usage: | |
% Ts = 1e-2 | |
% [B, A] = butter(2, 0.5*Ts/2); | |
% sysd = tf(B, A, Ts); |
This file contains 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 | |
# Copy into /etc/cron.hourly | |
pushover_app_token="your--app--token" | |
pushover_user_guid="your--user--or--group--id" | |
dropbox_username="user--with--dropbox--installed" | |
process_to_check="your--process--name" | |
# Notification function | |
notify () { | |
# Send pushover notification |
This file contains 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
' Spec: | |
' On open... | |
' Get the file name for the current Word document. | |
' Check for an existing token file. | |
' If there is a token, warn the user and ask for permission to continue (by default, exit). | |
' Move the token to token.overwritten so that the user who got screwed may have some chance to recover. | |
' If there is no existing token, establish one for this user. | |
' Get the user name and current date and time. | |
' Create a token file with pertinent information. | |
' Store the token information in the open file to compare when closure is attempted. |