Skip to content

Instantly share code, notes, and snippets.

{"_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"
@andymayer
andymayer / main.py
Created October 11, 2018 13:07
codetest created by andymayer1 - https://repl.it/@andymayer1/codetest
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:
@andymayer
andymayer / main.py
Created October 11, 2018 13:07
codetest created by andymayer1 - https://repl.it/@andymayer1/codetest
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:
@andymayer
andymayer / main.py
Created October 11, 2018 13:07
codetest created by andymayer1 - https://repl.it/@andymayer1/codetest
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:
@andymayer
andymayer / gist:9efbb3755aceb211ad17
Created June 9, 2015 21:31
Uses Google's API to return longitude and latitude for an address location
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"]