This file contains hidden or 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
| ewlarson@beanburrito-5 tmp % ASSET_PIPELINE=importmap rails new gbl-quickstart-importmaps -m https://raw.githubusercontent.com/geoblacklight/geoblacklight/main/template.rb -a propshaft --css bootstrap --js importmap | |
| create | |
| create README.md | |
| create Rakefile | |
| create .node-version | |
| create .ruby-version | |
| create config.ru | |
| create .gitignore | |
| create .gitattributes | |
| create Gemfile |
This file contains hidden or 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
| Prompt: | |
| Digitized Historical Map OCR + Placenames + Bounding Box + Description | |
| Your task is to analyze a digitized historical map image and produce a high-accuracy extraction of printed textual content, geographic interpretation, and an accessibility description, along with explicit reasoning metadata. | |
| Follow these instructions exactly. | |
| 1️⃣ Text Extraction (Printed Text Only) | |
| Focus only on printed text on the map (ignore handwriting unless it clearly functions as a map label). | |
| Extract: | |
| Main title and subtitles | |
| Inset titles and labels | |
| Legend text (category labels, symbols, explanatory notes) |
This file contains hidden or 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
| require 'date' | |
| require 'faraday' # Faraday v2 | |
| require 'json' | |
| # | |
| # List all Questions from an account via start_date and end_date params as JSON | |
| # | |
| # Required API Variables | |
| DOMAIN = 'foo' # Without .gimlet.us |
This file contains hidden or 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
| # Ruby Example | |
| require 'date' | |
| require 'faraday' | |
| require 'json' | |
| # Required API Variables | |
| domain = 'your_domain' | |
| email = 'your_email_address' | |
| api_key = 'your_api_key' | |
| site_id = 'your_site_id' |
This file contains hidden or 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
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'json' | |
| gem 'iiif-presentation' | |
| end | |
| require 'csv' | |
| require 'open-uri' |
This file contains hidden or 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
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'json' | |
| gem 'iiif-presentation' | |
| end | |
| require 'open-uri' | |
| require 'iiif/presentation' |
This file contains hidden or 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
| # Install Dependences | |
| require 'rsolr' | |
| # Connect to solr | |
| solr = RSolr.connect :url => 'http://localhost:8983/solr/geoportal' | |
| # Search request | |
| response = solr.get 'select', :params => {:q => '*:*', :rows => '10000'} |
This file contains hidden or 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
| require 'google/apis/analyticsreporting_v4' | |
| analytics = Google::Apis::AnalyticsreportingV4::AnalyticsReportingService.new | |
| # Authentication / Authorization | |
| # via credentials.json | |
| # | |
| # File downloaded via Google's API Manager | |
| # - Create a Service Account | |
| # - Add the service account's email address to your Google Analytics account |
This file contains hidden or 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
| Library Name,URL,PageSpeed Score | |
| University of Minnesota Libraries , https://www.lib.umn.edu/ ,97 | |
| National Agricultural Library , http://www.nal.usda.gov/ ,90 | |
| Princeton University Library , http://library.princeton.edu/ ,89 | |
| University of Manitoba Libraries , http://www.umanitoba.ca/libraries/ ,87 | |
| University of Toronto Libraries , http://onesearch.library.utoronto.ca/ ,87 | |
| Massachusetts Institute of Technology Libraries , http://libraries.mit.edu/ ,85 | |
| Yale University Library , http://www.library.yale.edu/ ,85 | |
| University of New Mexico Library , http://www.unm.edu/libraries/ ,83 | |
| University of Pennsylvania Libraries , http://www.library.upenn.edu/ ,83 |
This file contains hidden or 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
| 1/3 cup olive oil | |
| 1/3 cup balsamic vinegar | |
| 1/3 cup mayo | |
| 1t sugar | |
| 1t dijon mustard | |
| 1t Country French Vinaigrette dressing mix (Penzey's spices) | |
| 1 garlic clove | |
| Everything into the food processor. Whirl. Enjoy. |