gdritter repos GRUtils / f183757
Small updates to various scripts Getty Ritter 8 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Collapse all Expand all
11 #!/bin/sh
22
3 LIB_REPO=/home/gdritter/Projects/sites/lib-data /home/gdritter/Projects/sites/lib-static/utils/add-quote $@
3 LIB_REPO=/home/gdritter/projects/sites/lib-data /home/gdritter/projects/sites/lib-static/utils/add-quote $@
22
33 FILENAME=$(mktemp)
44 cat >$FILENAME
5 echo $FILENAME
5 echo $FILENAME
22
33 import sys
44
5 nums = [int(l) for l in sys.stdin.readlines()]
5 nums = [float(l) for l in sys.stdin.read().split()]
66 print sum(nums) / float(len(nums))