Skip to content

Instantly share code, notes, and snippets.

View hyleung's full-sized avatar

Ho Yan Leung hyleung

View GitHub Profile
@hyleung
hyleung / http-xml.clj
Last active May 5, 2018 03:54
clj-http coerce to xml/xml-zipper
(require '[clj-http.client :as http]
'[clj-http.util :as http.util]
'[clojure.data.xml :as xml]
'[clojure.zip :as zip]
'[clojure.data.zip.xml :as xml-zip])
(defmethod http/coerce-response-body :xml
[_ {:keys [body] :as resp}]
(assoc resp :body
@hyleung
hyleung / api-format-examples.md
Last active September 13, 2019 17:24
API format examples

JSON-LD

    {
      "@context": "https://schema.org",
      "@type": "Person",
      "address": {
        "@type": "PostalAddress",
        "addressLocality": "Colorado Springs",
        "addressRegion": "CO",
        "postalCode": "80840",
@hyleung
hyleung / resume.json
Last active September 21, 2022 21:30
JSON Resume
{
"meta": {
"theme": "elegant"
},
"basics": {
"profiles": [
{
"url": "https://github.com/hyleung",
"username": "hyleung",
"network": "GitHub"