Skip to content

Instantly share code, notes, and snippets.

View mejackreed's full-sized avatar
🐧

Jack Reed mejackreed

🐧
View GitHub Profile
@mejackreed
mejackreed / embed_footer.rb
Last active August 29, 2015 14:23
Embed to React
@mejackreed
mejackreed / Readme.md
Created July 7, 2015 17:24
MODs to RDF - hierarchicalGeographic

We should stop creating geographic hierarchies in descriptive metadata period.

Geographic hierarchy can be a maintenance burden and difficult to update over time. It falls short in a lot of areas and doesn't really give us what we need for discovery.

My recommendation

Capture the most granular geographies within the metadata, no need to list the entire tree.

** Example ** from https://github.com/OpenGeoMetadata/edu.stanford.purl/blob/master/bc/899/yk/4538/mods.xml

##
# Creates a CartoDB OneClick link link, using the configuration link
# @param [String] file_link
# @return [String]
def cartodb_link(file_link)
params = URI.encode_www_form(
file: file_link,
provider: application_name,
logo: Settings.APPLICATION_LOGO_URL
)
@mejackreed
mejackreed / test.rb
Created August 10, 2015 16:43
test proposal
it 'loads the SLY slider and scroll' do
expect(page).to have_css('.sul-embed-thumb-slider-scroll', count: 1, visible: true)
within '.sul-embed-was-seed' do
expect(page.find('.sul-embed-was-thumb-list')['style']).to match(/webkit-transform: translateZ/)
end
end
@mejackreed
mejackreed / webmap_spec.json
Created August 12, 2015 14:43
WebMap Specification?
{
"name": "Awesome WebMap",
"bounds": [-180, -85, 180, 85],
"center": [0,0],
"layers": [
{
"geojson": "https://gist.github.com/anonymous/9ec334f3536b4416670d"
},
{
"wms": "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi",
@mejackreed
mejackreed / info.json
Created August 13, 2015 22:56
example iiif response using "tiles"
{
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "https://sul-stacks.stanford.edu/image/iiif/bb537hc4022%2Fbb537hc4022_001",
"width": 3712,
"height": 5072,
"protocol": "http://iiif.io/api/image",
"sizes": [
{
"height": 317,
"width": 232

Welcome

Wifi

"UST-Open"

@mejackreed
mejackreed / Blacklight Ask the Experts.md
Last active September 21, 2015 18:19
Blacklight Ask the Experts - HydraConnect 2015

Questions

We've been having trouble with facets. I cannot display the more link, Solr query always contains "10"?

Where is the solr configuration? This can be configured in Blacklight and Solr. Have you done limit: true? Yes.

We have a use case for changing how the facets work "oring them rather than anding them". Are there best practices around this? Can this be a configurable Blacklight feature?

This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "https://geowebservices.stanford.edu:443/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd">
<WMT_MS_Capabilities version="1.1.1" updateSequence="1524">
<Service>
<Name>OGC:WMS</Name>
<Title/>
<Abstract/>
<KeywordList/>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://geowebservices.stanford.edu:443/geoserver/"/>
<ContactInformation>
@mejackreed
mejackreed / codereviews.md
Last active October 16, 2015 21:39
How we work on teams

Code Reviews

From: https://playbook.thoughtbot.com/#code-reviews

  1. Create a local feature branch based off master.
  2. When feature is complete and tests pass, stage the changes.
  3. When you've staged the changes, commit them.
  4. Write a good commit message.
  5. Share your branch.
  6. Submit a GitHub pull request.
  7. Ask for a code review in Slack.