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/zsh | |
# Creates a virtual environment and installs requirements while taking into account | |
# the apparent lack of a binary wheel for scipy on M1 Mac. | |
set -ueo pipefail | |
if [ "$(uname -m)" != "arm64" ]; then | |
echo "WARNING: You should not need this script as you are not running an M1 Mac." > /dev/fd/2 | |
fi |
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
CREATE OR REPLACE FUNCTION st_extend ( | |
geom geometry, | |
head_rate double precision, | |
head_constant double precision, | |
tail_rate double precision, | |
tail_constant double precision) | |
RETURNS geometry AS | |
$BODY$ | |
-- Extends a linestring. | |
-- First segment get extended by length * head_rate + head_constant. |
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
-- This file defines pgTAP, a collection of functions for TAP-based unit | |
-- testing. It is distributed under the revised FreeBSD license. | |
-- | |
-- The home page for the pgTAP project is: | |
-- | |
-- http://pgtap.org/ | |
CREATE OR REPLACE FUNCTION pg_version() | |
RETURNS text AS 'SELECT current_setting(''server_version'')' | |
LANGUAGE SQL IMMUTABLE; |