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
{"_index":"quaker-search","_type":"_doc","_id":"684","_version":1,"_seq_no":72,"_primary_term":1,"found":true,"_source":{"name":"Give money","status":"published","json_content":{"content_chunks":{"title":{"value":"Give money","field_type":"string"},"strapline":{"value":"\u003cp\u003e!!!\u003c/p\u003e","field_type":"text"},"hero_image":{"alt":""},"introduction":{"value":"\u003cp\u003eThank you for supporting the valuable work of Britain Yearly Meeting on behalf of Quakers in Britain. Your donation will help us as we seek to put Quaker faith into action.\u003c/p\u003e","field_type":"text"},"summary_content":{"value":"","field_type":"rich_content"},"show_anchor_menu":{"value":"1","field_type":"boolean"},"anchor_menu_heading":{"value":"Ways to give","field_type":"string"},"featured_resource_title":{"value":"","field_type":"string"},"featured_resource_image":{"alt":""},"featured_resource_description":{"value":"","field_type":"string"},"featured_resource":{"value":"","field_type":"document"},"main_content":{"value" |
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
import dominate | |
from dominate.tags import * | |
doc = dominate.document(title='Dominate your HTML') | |
with doc.head: | |
link(rel='stylesheet', href='style.css') | |
script(type='text/javascript', src='script.js') | |
with doc: |
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
import dominate | |
from dominate.tags import * | |
doc = dominate.document(title='Dominate your HTML') | |
with doc.head: | |
link(rel='stylesheet', href='style.css') | |
script(type='text/javascript', src='script.js') | |
with doc: |
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
import dominate | |
from dominate.tags import * | |
doc = dominate.document(title='Dominate your HTML') | |
with doc.head: | |
link(rel='stylesheet', href='style.css') | |
script(type='text/javascript', src='script.js') | |
with doc: |
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
require "json" | |
require "rest-client" | |
class Location | |
def self.lookup(location) | |
safe_location = URI.encode(location) | |
lookup = self.get_request(safe_location) | |
begin | |
first_result = lookup["results"][0]["geometry"]["location"] |