Skip to content

Instantly share code, notes, and snippets.

{
"MRData": {
"CircuitTable": {
"Circuits": [
{
"Location": {
"country": "Australia",
"locality": "Melbourne",
"long": "144.968",
"lat": "-37.8497"
@josf
josf / keybase.md
Created November 22, 2017 16:35
keybase.md

Keybase proof

I hereby claim:

  • I am josf on github.
  • I am josf (https://keybase.io/josf) on keybase.
  • I have a public key ASBccMiMSWb1A0ZJzAfUNFdMsT6fNnMUSrobWFwtDT-K_Qo

To claim this, I am signing this object:

(defn arg-find
"Helper function for defroute that extracts code from the body and
organizes it as bindings, symbols and body. Function calls within
the body are replaced by their corresponding gensyms. (:symbols is
just a list of the gensyms in :bindings, for convenience)"
[body]
(reduce (fn [acc [k v]]
(if (list? v)
(let [sym (gensym (str (name k) "-"))]
<?php
/**
* @param DOMNode to be truncated
* @return DOMNode
*
* NB: le DOMNode retourné doit être préalablement importé dans le
* Document où il va résider.
*/
;;; This is running on phantomjs, but I get the same error in Chrome
eloquentia.data> (cljs.reader/read-string (str {:1 1}))
"Error evaluating:" (cljs.reader/read-string (str {:1 1})) :as "cljs.reader.read_string.call(null,(''+cljs.core.str.cljs$core$IFn$_invoke$arity$1(new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,\"1\",\"1\",-521621649),(1)], null))));\n"
#<TypeError: 'null' is not an object (evaluating 'a[(0)]')>
TypeError: 'null' is not an object (evaluating 'a[(0)]')
at read_keyword (:474)
at read_delimited_list (:307)
at read_map (:343)
at read (:663)
(defn html-files [dir]
"Returns a lazy seq of java file objects"
(filter #(and (.isFile %) (re-find #"\.html" (.getName %)))
(file-seq (clojure.java.io/file dir))))
@josf
josf / A_2_5.txt.xml
Created October 22, 2010 08:15
Conversion mazarinade basique
<!-- Le fichier converti au TEI-Lite -->
<?xml version="1.0"?>
<TEI>
<teiHeader><titleStmt><title>
APOLOGIE
OV
DEFFENCE
DV CARDINAL MAZARIN.