langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,21 @@
|
|||
open Printf
|
||||
|
||||
let ns_there = Join.Ns.there (Unix.ADDR_INET (Join.Site.get_local_addr(), 12345))
|
||||
|
||||
let lookup name = Join.Ns.lookup ns_there name
|
||||
|
||||
let log : string -> unit = lookup "log"
|
||||
let search : string -> (string * float) list = lookup "search"
|
||||
|
||||
let find txt =
|
||||
printf "Looking for %s...\n" txt;
|
||||
List.iter (fun (line, time) ->
|
||||
printf "Found: '%s' at t = %f\n%!" (String.escaped line) time)
|
||||
(search txt)
|
||||
|
||||
let () =
|
||||
log "bar";
|
||||
find "foo";
|
||||
log "foo";
|
||||
log "shoe";
|
||||
find "foo"
|
||||
Loading…
Add table
Add a link
Reference in a new issue