Skip to content

Instantly share code, notes, and snippets.

View tuhlmann's full-sized avatar
😎
Having fun developing new stuff

Torsten Uhlmann tuhlmann

😎
Having fun developing new stuff
View GitHub Profile
@tuhlmann
tuhlmann / core.clj
Created October 4, 2015 18:35
Quick & Dirty conversion of exported Wordpress posts into markdown
(ns word-parsos.core
(:gen-class)
(:require [clojure.xml]
[clojure.zip :as zip]
[clojure.data.zip.xml :as zip-xml]
[clj-time.core :as t]
[clj-time.format :as f]
[cuerdas.core :as str]
[clojure.pprint :as pprint]
[clj-commons-exec :as exec])
const path = require("path")
const config = require("./config/website")
const here = (...p) => path.join(__dirname, ...p)
const pathPrefix = config.pathPrefix === "/" ? "" : config.pathPrefix
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})