-
-
Save shayanjm/5cc95e71a3f3492084e6 to your computer and use it in GitHub Desktop.
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 hexpacker.csv | |
(:require [clojure.data.csv :as csv] | |
[clojure.java.io :as io])) | |
(defn write-csv [path row-data] | |
(let [columns (vec (keys (first row-data))) | |
headers (map name columns) | |
rows (mapv #(mapv % columns) row-data)] | |
(with-open [file (io/writer path)] | |
(csv/write-csv file (cons headers rows))))) |
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
({:name "barifek", | |
:place_id "ChIJxWb2saS1RIYRHJLgHu1QC2U", | |
:types ["bar" "establishment"]} | |
{:name "James Family Ranch One LLC", | |
:place_id "ChIJAQ9XKQa1RIYRwU2Y-zZJp7Y", | |
:types ["lawyer" "food" "establishment"]} | |
{:name "The Original New Orleans Po-Boy and Gumbo Shop", | |
:place_id "ChIJsefnxfq0RIYRjD9kngpqhok", | |
:types ["meal_takeaway" "restaurant" "food" "establishment"]} | |
{:name "5 Minutes Of Fame", | |
:place_id "ChIJx9R9Rqa1RIYRs4OxpITPwtM", | |
:types ["night_club" "bar" "establishment"]} | |
{:name "Rainey's Backyard", | |
:place_id "ChIJW0cDaKm1RIYReJxsmR4W-JY", | |
:types ["bar" "establishment"]} | |
{:name "The Silo on 7th", | |
:place_id "ChIJHw3JebC1RIYRGffBvt6EBTM", | |
:types ["restaurant" "food" "establishment"]} | |
{:name "Star Co.", | |
:place_id "ChIJATi1Awq1RIYRtzHNlcXATUQ", | |
:types ["store" "cafe" "food" "establishment"]} | |
{:name "Kebabalicious", | |
:place_id "ChIJgfid-aa1RIYRDYIAvRn6qE8", | |
:types ["meal_takeaway" "restaurant" "food" "establishment"]} | |
{:name "Veracruz All Natural Food Truck", | |
:place_id "ChIJ5TnXj7O1RIYR1QQH8J_paW8", | |
:types ["restaurant" "food" "establishment"]} | |
{:name "Tapas Bravas", | |
:place_id "ChIJHUq11qu1RIYR_qx6lTTwxcE", | |
:types ["restaurant" "food" "establishment"]}) |
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
name | place_id | types | |
---|---|---|---|
barifek | ChIJxWb2saS1RIYRHJLgHu1QC2U | ["bar" "establishment"] | |
James Family Ranch One LLC | ChIJAQ9XKQa1RIYRwU2Y-zZJp7Y | ["lawyer" "food" "establishment"] | |
The Original New Orleans Po-Boy and Gumbo Shop | ChIJsefnxfq0RIYRjD9kngpqhok | ["meal_takeaway" "restaurant" "food" "establishment"] | |
5 Minutes Of Fame | ChIJx9R9Rqa1RIYRs4OxpITPwtM | ["night_club" "bar" "establishment"] | |
Rainey's Backyard | ChIJW0cDaKm1RIYReJxsmR4W-JY | ["bar" "establishment"] | |
The Silo on 7th | ChIJHw3JebC1RIYRGffBvt6EBTM | ["restaurant" "food" "establishment"] | |
Star Co. | ChIJATi1Awq1RIYRtzHNlcXATUQ | ["store" "cafe" "food" "establishment"] | |
Kebabalicious | ChIJgfid-aa1RIYRDYIAvRn6qE8 | ["meal_takeaway" "restaurant" "food" "establishment"] | |
Veracruz All Natural Food Truck | ChIJ5TnXj7O1RIYR1QQH8J_paW8 | ["restaurant" "food" "establishment"] | |
Tapas Bravas | ChIJHUq11qu1RIYR_qx6lTTwxcE | ["restaurant" "food" "establishment"] | |
Schlotzsky's | ChIJLfteVRe1RIYRYPDxTCbzXT0 | ["bakery" "store" "restaurant" "food" "establishment"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment