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 stuff | |
(:require [instaparse.core :as insta])) | |
(def hdl-parse | |
(insta/parser | |
"CHIP = <'CHIP'> <SPACE+> NAME <SPACE*> <'{'> <SPACE*> INSPEC <SPACE*> OUTSPEC <SPACE*> PARTS <SPACE*> <'}'> | |
INSPEC = <'IN'> <SPACE+> (SPECITEM <SPACE*> <','?> <SPACE*>)* <';'> | |
OUTSPEC = <'OUT'> <SPACE+> (SPECITEM <SPACE*> <','?> <SPACE*>)* <';'> | |
PARTS = <'PARTS:'> <SPACE*> (PART <SPACE*>)* | |
PART = NAME <'('> (<SPACE*> PARTIO <','>?)+ <');'> |
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 test1 | |
(:require [instaparse.core :as insta] | |
[net.cgrand.enlive-html :as enlive] | |
[clojure.walk :as walk])) | |
(defn render [nodes] | |
(walk/postwalk #(if (and (map? %) (:tag %)) | |
(with-meta (hash-map (:tag %) (:content %)) (:attrs %)) | |
%) nodes)) |
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
admin@mailserver1 | |
niceandsimple@example.com | |
very.common@example.com | |
a.little.lengthy.but.fine@dept.example.com | |
disposable.style.email.with+symbol@example.com | |
postbox@com | |
user@[192.168.2.1] | |
user@[IPv6:2001:db8:1ff::a0b:dbd0] |
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
#!/bin/sh | |
# Ubuntu 12.04 | |
# sudo apt-get -y install p7zip-full genisoimage | |
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso | |
wget http://www.tinycorelinux.net/4.x/x86/release/distribution_files/core64.gz | |
wget http://www.tinycorelinux.net/4.x/x86/release/distribution_files/vmlinuz64 | |
# extract files | |
7z x Core-current.iso -ocore-current |
OlderNewer