Skip to content

Instantly share code, notes, and snippets.

View ekoontz's full-sized avatar

Eugene Koontz ekoontz

View GitHub Profile
@ekoontz
ekoontz / init.el
Created January 26, 2020 14:58
my emacs init.el
(require 'package)
(eval-when-compile
;; Following line is not needed if use-package.el is in ~/.emacs.d
(add-to-list 'load-path "/Users/ekoontz/.emacs.d/elpa/use-package-2.3")
(add-to-list 'load-path "/Users/ekoontz/.emacs.d/elpa/bind-key-2.3")
(require 'bind-key)
(require 'use-package))
;; cider requires:
;;
@ekoontz
ekoontz / proxy restarter
Created January 14, 2020 22:43
restart your proxy after the ssh command terminates (whether normally or unexpectedly) and show return code from ssh after connection terminates
#!/bin/sh
while [ 1 ]; do
echo "starting ssh at $(date).."
ssh -oConnectTimeout=2 -D 8000 -N myhost.org
echo "did it die? (return code was: $?)..anyways, restarting after a 1 second sleep.."
sleep 1
done
% cat preds
(i.e. student the more common case (c.f. "student")
I
Jean
Juan
Juan-and-i
Juana
a-generic-instance-of
abandon
abbracciare
https://github.com/apache/hbase/commits/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java
https://github.com/cloudera/hbase/commits/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLog.java
DEBUG 18 feb 2017 13:28:08,820 babel.generate: generate-all:0/8:{:cat :noun, :subcat (), :rule "noun-phrase3", :mod {:first {:pred :see, :subj {:pred :lui}}}, :pred :man, :agr {:number :sing}}
DEBUG 18 feb 2017 13:28:08,820 babel.generate: lightning-bolts@:
DEBUG 18 feb 2017 13:28:08,820 babel.generate: candidate-parents: spec: {:cat :noun, :subcat (), :rule "noun-phrase3", :mod {:first {:pred :see, :subj {:pred :lui}}}, :pred :man, :agr {:number :sing}}
DEBUG 18 feb 2017 13:28:08,821 babel.generate: candidate: nbar1 failed at:{:fail-path "/:rule", :val1 "noun-phrase3", :val2 "nbar1"}
DEBUG 18 feb 2017 13:28:08,821 babel.generate: candidate: nbar2 failed at:{:fail-path "/:rule", :val1 "noun-phrase3", :val2 "nbar2"}
DEBUG 18 feb 2017 13:28:08,821 babel.generate: candidate: noun-phrase1 failed at:{:fail-path "/:rule", :val1 "noun-phrase3", :val2 "noun-phrase1"}
DEBUG 18 feb 2017 13:28:08,822 babel.generate: candidate: noun-phrase2 failed at:{:fail-path "/:rule", :val1 "noun-phrase3", :val2 "noun-phrase2"}
DEBU

Keybase proof

I hereby claim:

  • I am ekoontz on github.
  • I am ekoontz (https://keybase.io/ekoontz) on keybase.
  • I have a public key whose fingerprint is 6124 41AF BCFF 37DB 5113 9F41 25B3 42BD D8F8 77F6

To claim this, I am signing this object:

babel.test.en> v1
{:first #atom[{:obj #atom[#atom[:top 0x607a790b] 0x7b638210]} 0xee16390], :rest #atom[:top 0x404d96e4]}
babel.test.en> v2
{:first {:pred :see}, :rest ()}
babel.test.en> (fail? (unify v2 v1))
true
babel.test.en> (fail? (unify v1 v2))
false
babel.test.en>
verbcoach::RED=> verbcoach::RED=> SELECT created,surface,tense,aspect,structure->'english'->'b'->>'infl' FROM expression_with_root WHERE language='en' AND tense='past' AND aspecND active=true AND structure->'english'->'b'->>'infl' = 'present';
created | surface | tense | aspect | ?column?
----------------------------+----------------------------+-------+-------------+----------
2016-12-12 23:13:06.59363 | Gianluca listens to | past | progressive | present
2016-12-12 23:15:25.538913 | Gianluca is born | past | progressive | present
2016-12-12 23:16:24.825597 | Gianluca sits down | past | progressive | present
2016-12-12 23:48:02.006703 | Gianluca is | past | progressive | present
2016-12-13 00:18:01.31121 | Giovanni and I are | past | progressive | present
2016-12-13 00:46:36.848698 | it (♀) gets angry | past | progressive | present
2016-12-13 00:18:01.403167 | Giovanni and I are | past
verbcoach=> SELECT subj,surface FROM expression_with_root WHERE root='dire' AND tense='present' AND aspect='simple' AND language='it' AND active=true;
subj | surface
----------------+-----------------------
I | io dico
I | io dico
I | io dico
I | io dico
noi | noi diciamo
tu | tu dici
tu | tu dici
This file has been truncated, but you can view the full file.
english | italiano_root | italiano
-----------------------------------------------+-----------------+---------------------------------------
Gianluca abandoned | abbandonare | Gianluca ha abbandonato
Giovanni and I abandoned | abbandonare | Giovanni e io abbiamo abbandonato
Giovanni and I used to abandon | abbandonare | Giovanni e io abbandonavamo
he abandons | abbandonare | lui abbandona
he used to abandon | abbandonare | lui abbandonava
he was abandoning | abbandonare | lui abbandonava
he will abandon | abbandonare | lui abbandonerà
I abandon | abbandonare | io abbandono