master
Nathaniel Smith 2014-11-08 20:15:06 -05:00
parent 483b8adb85
commit 5ea07fd3ee
1 changed files with 4 additions and 4 deletions

View File

@ -31,16 +31,16 @@
(defn sort-user-list [usernames]
(apply sorted [usernames] {"key" modify-time}))
(defn users [] (listdir "/home"))
(defn user-generator [] (-> (listdir "/home")
(filter (fn [f] (and (not (= f "ubuntu")) (not (= f "poetry")))))))
(def user-list (->> (users)
(filter (fn [f] (and (not (= f "ubuntu")) (not (= f "poetry")))))
(def user-list (->> (user-generator)
sort-user-list
reversed
(map dir->html)
(.join "\n")))
(print (.format "our esteemed users ({})<br> <sub>generated at {}</sub><br><ul>{}</ul>"
(len (users))
(len (user-generator))
timestamp
user-list))