Skip to content

Instantly share code, notes, and snippets.

@mertonium
Last active August 29, 2015 14:15
Show Gist options
  • Save mertonium/edb6ae7919fad61493f3 to your computer and use it in GitHub Desktop.
Save mertonium/edb6ae7919fad61493f3 to your computer and use it in GitHub Desktop.
Blocks of ruby code that can add the Citygram-SF endpoints to citygram.org
Publisher.create! do |pub|
pub.title = "Street Tree List"
pub.endpoint = "https://citygram-sf-registries.herokuapp.com/tree-planting"
pub.active = true
pub.visible = true
pub.city = "San Francisco"
pub.icon = "leaf-collection.png"
pub.state = "CA"
pub.description = "List of DPW maintained street trees including: Planting date, species, and location"
pub.tags = ["san-francisco","san francisco","sf","trees"]
end
Publisher.create! do |pub|
pub.title = "Temporary Tow Zones"
pub.endpoint = "https://citygram-sf-registries.herokuapp.com/tow-away-zones"
pub.active = true
pub.visible = true
pub.city = "San Francisco"
pub.icon = "cone.png"
pub.state = "CA"
pub.description = "Temporary tow away zones in San Francisco granted by permit from the SFMTA or Department of Public Works. These zones have signs posted minimum of 72 hours prior to enforcement."
pub.tags = ["san-francisco","san francisco","sf","tow zone","parking"]
end
Publisher.create! do |pub|
pub.title = "Street-Use Permits"
pub.endpoint = "https://citygram-sf-registries.herokuapp.com/street-use-permits"
pub.active = true
pub.visible = true
pub.city = "San Francisco"
pub.icon = "street-closures.png"
pub.state = "CA"
pub.description = "Active Street use permits issued by DPW"
pub.tags = ["san-francisco","san francisco","sf","parking"]
end
Publisher.create! do |pub|
pub.title = "Food Truck Permits"
pub.endpoint = "https://citygram-sf-registries.herokuapp.com/food-truck-permits"
pub.active = true
pub.visible = true
pub.city = "San Francisco"
pub.icon = "utensils.png"
pub.state = "CA"
pub.description = "Mobile Food Facility Permits including name of vendor, location, type of food sold and status of permit."
pub.tags = ["san-francisco","san francisco","sf","food truck"]
end
Publisher.create! do |pub|
pub.title = "New Business Locations"
pub.endpoint = "https://citygram-sf-registries.herokuapp.com/new-business-location"
pub.active = true
pub.visible = true
pub.city = "San Francisco"
pub.icon = "building-permits.png"
pub.state = "CA"
pub.description = "Active registered business locations in San Francisco maintained by the Office of Treasurer-Tax Collector."
pub.tags = ["san-francisco","san francisco","sf","business"]
end
Publisher.create! do |pub|
pub.title = "SFPD Incidents"
pub.endpoint = "https://citygram-sf-registries.herokuapp.com/crime-incidents"
pub.active = true
pub.visible = true
pub.city = "San Francisco"
pub.icon = "police-incidents.png"
pub.state = "CA"
pub.description = "Incidents derived from SFPD Crime Incident Reporting system. Updated daily, but two weeks behind the current date."
pub.tags = ["san-francisco","san francisco","sf","crime","police"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment