Skip to content

Instantly share code, notes, and snippets.

@damonvjanis
Last active December 5, 2018 21:47
Show Gist options
  • Save damonvjanis/33149014a3b511bd6cb76c5c33ea6479 to your computer and use it in GitHub Desktop.
Save damonvjanis/33149014a3b511bd6cb76c5c33ea6479 to your computer and use it in GitHub Desktop.
Generates some big data sets to test matching
random = fn -> Enum.random(97..122) end
string = fn -> to_string([random.(), random.(), random.(), random.()]) end
leads =
for _ <- 1..10_000 do
%{"first" => string.(), "last" => string.(), "email" => string.() <> "@example.com"}
end
contacts =
for _ <- 1..10_000 do
%{"first" => string.(), "last" => string.(), "email" => string.() <> "@example.com"}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment