Created
November 21, 2010 14:19
-
-
Save edbond/708768 to your computer and use it in GitHub Desktop.
fake emails file generator
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 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