Skip to content

Instantly share code, notes, and snippets.

@edbond
Created November 21, 2010 14:19
Show Gist options
  • Save edbond/708768 to your computer and use it in GitHub Desktop.
Save edbond/708768 to your computer and use it in GitHub Desktop.
fake emails file generator
(ns e.core
(:gen-class)
(:use faker.internet))
(defn make-n-emails-file
[filename n]
(spit filename
(apply str (interleave (take n (emails)) (repeat "\n")))))
(defn -main
[filename n]
(let [i (Integer/parseInt n)]
(println (format "Generating %d emails into %s file" i filename))
(make-n-emails-file filename i)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment