View README.md
View journals.mrc
01571cas a22003611a 45 001001200000005001700012008004100029010003600070022001400106032001700120035001600137037006600153040012800219049001700347050001800364210002700382222004000409245010200449246004000551260004500591300002700636310001900663362005700682500002200739500006900761515003100830650004900861650003600910650003200946710006000978780006301038785010801101testsample120091117105557.0840328d19831987nyufx1p o 0 a0eng d a 84643014 //r88zsn 84011556 0 a0748-1985 a002051bUSPS aocm10569413 bHuman Sciences Press, Inc., 72 5th Ave., New York, N.Y. 10011 aKSWcKSWdCLUdAIPdNSTdDLCdNSDdNSTdDLCdHULdNSTdNSDdNLMdNSTdNSDdNSTdNSDdDLCdNSTdNSDdNSTdCLUdNSTdOCLdPVU aPVUP[SERIAL]00aAC489.R3bJ680 aJ. ration. emot. ther. 0aJournal of rational emotive therapy00aJournal of rational emotive therapy :bthe journal of the Institute for Rational-Emotive Therapy.13aJournal of rational-emotive therapy a[New York] :bThe Institute,c1983-1987. a5 v. :bill. ;c26 cm.
View xlsx2tsv.py
#!/usr/bin/env python
"""
xlsx2tsv filename.xlsx [sheet number or name]
Parse a .xlsx (Excel OOXML, which is not OpenOffice) into tab-separated values.
If it has multiple sheets, need to give a sheet number or name.
Outputs honest-to-goodness tsv, no quoting or embedded \\n\\r\\t.
One reason I wrote this is because Mac Excel 2008 export to csv or tsv messes
up encodings, converting everything to something that's not utf8 (macroman
View Makefile
SHELL = /bin/bash
images:
python expansion.py
gifs:
for fn in *png; do convert "$$fn" "$${fn%.png}.gif"; done
anim.gif:
gifsicle --colors 16 --delay=35 --loop x_*.gif > anim.gif
View webshare.go
// webshare serves the current directory on port 3000.
package main
import (
"log"
"net"
"net/http"
)
func loggingHandler(h http.Handler) http.Handler {
View gcd_and_lcm.py
# Greatest common divisor of more than 2 numbers. Am I terrible for doing it this way?
def gcd(*numbers):
"""Return the greatest common divisor of the given integers"""
from fractions import gcd
return reduce(gcd, numbers)
# Least common multiple is not in standard libraries? It's in gmpy, but this is simple enough:
def lcm(*numbers):