This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// standard-version updater to read and write project version from/to Leiningen project.clj. | |
const defProjectRegex = /\(defproject\s+([a-z\./-]+)\s+\"([^\"]+)\".*/; | |
module.exports = { | |
bumpFiles: [{ | |
filename: 'project.clj', | |
updater: { | |
readVersion: function(contents) { | |
const lines = contents.split("\n"); | |
const defProject = lines[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn quintessence | |
"Yields sense. | |
Should be used judiciously. Sense is not what you always want." | |
[] | |
(fn [anything] ((juxt :important :inevitable) anything))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns io.shapiy.core | |
(:gen-class) | |
(:require [clojure.data.xml :refer :all]) | |
(:import (clojure.data.xml Element))) | |
(def html "<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>Programming languages</h1> | |
<p>There are many, for example:</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns io.shapiy.core | |
(:gen-class) | |
(:require [clojure.data.xml :refer :all]) | |
(:import (clojure.data.xml Element))) | |
(def html "<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>Programming languages</h1> | |
<p>There are many, for example:</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rocks.xml.saxontrace; | |
import org.apache.xerces.parsers.SAXParser; | |
import org.apache.xerces.util.AugmentationsImpl; | |
import org.apache.xerces.util.XMLAttributesImpl; | |
import org.apache.xerces.xni.Augmentations; | |
import org.apache.xerces.xni.QName; | |
import org.apache.xerces.xni.XMLAttributes; | |
import org.apache.xerces.xni.XNIException; |