aboutsummaryrefslogtreecommitdiff
path: root/.gitmodules
diff options
context:
space:
mode:
Diffstat (limited to '.gitmodules')
-rw-r--r--.gitmodules3
1 files changed, 0 insertions, 3 deletions
diff --git a/.gitmodules b/.gitmodules
index 390e7400..af225c02 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -11,9 +11,6 @@
[submodule "vim/bundle/copy_linebreak"]
path = vim/bundle/copy_linebreak
url = https://sanctum.geek.nz/code/vim-copy-linebreak.git
-[submodule "vim/bundle/fixed_join"]
- path = vim/bundle/fixed_join
- url = https://sanctum.geek.nz/code/vim-fixed-join.git
[submodule "vim/bundle/insert_cancel"]
path = vim/bundle/insert_cancel
url = https://sanctum.geek.nz/code/vim-insert-cancel.git
9:28 +1200 committer Tom Ryder <tom@sanctum.geek.nz> 2016-09-08 22:49:28 +1200 Generalise mean,med,mode,tot(1df) to numbers' href='/cgit/dotfiles.git/commit/bin/med.awk?h=v0.47.1&id=677d0e5fdc76620253af865ca03fd602c0419047'>677d0e5f
95276f25

39094831


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
                                     



                      

                                            


                                                   




                                           
               
                            
        
                                             
             

                     


               
# Get the median of a list of numbers
BEGIN {
    self = "med"
    stderr = "cat >&2"
}
{ vals[NR] = $1 }
NR > 1 && vals[NR] < vals[NR-1] && !warn++ {
    if (!stderr)
        stderr = "cat >&2"
    printf "%s: Input not sorted!\n", self | stderr
}
END {
    # Error out if we read no values at all
    if (!NR)
        exit(1)
    if (NR % 2)
        med = vals[(NR+1)/2]
    else
        med = (vals[NR/2] + vals[NR/2+1]) / 2
    print med
    if (stderr)
        close(stderr)
    if (warn)
        exit(1)
}