Skip to content

Instantly share code, notes, and snippets.

Leigh Dodds ldodds

Block or report user

Report or block ldodds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ldodds
ldodds / dgu-dataset-site-names.csv
Created Dec 8, 2018
Bristol Allotment Site Name Comparison
View dgu-dataset-site-names.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Sites from DGU Dataset
Arlington Road Allotments
Ashley Vale Allotments
Atwood Drive Allotments
Barracks Lane Allotments
Bath Road Allotments
Beaufort Road Allotments
Bedminster Down C Allotments
Bell Hill Allotments
Bifield Road Allotments
@ldodds
ldodds / kumu.css
Created Jul 24, 2018
Kumu configuration
View kumu.css
@settings {
template: systems;
connection-color: #0DBC37;
opposite-style: none;
font-color: #000;
font-size: 33;
element-text-align: bottom;
}
/* Knowledge & Insights */
View test.json
{
"type": "Event",
"identifier": 40,
"name": "Bootcamp",
"url": "http://www.lewishamparklife.co.uk.com/app/#/games/game/40",
"location": {
"type": "Place",
"address": {
"type": "PostalAddress",
"streetAddress": "London SE4 1LE, UK,undefined",
View A-Publish-opportunities-to-book-a-facility-at-a-leisure-centre.json
{
"@context": "https://www.openactive.io/ns/oa.jsonld",
"type": "FacilityUse",
"url": "http://www.example.org/facility-use/1",
"name": "Example Leisure Centre Table Tennis",
"description": "Table tennis tables are available to hire for thirty minute slots",
"activity": "Table Tennis",
"location": {
"type": "Place",
"name": "Example Leisure Centre",
@ldodds
ldodds / view.css
Created Jun 7, 2018
kumu advanced view
View view.css
@settings {
template: systems;
connection-color: #686868;
opposite-style: none;
font-color: #000;
font-size: 24;
}
/* Intangible Value */
connection["connection type"="intangible"] {
@ldodds
ldodds / event-with-location.json
Last active May 2, 2018
OpenActive opportunity model examples
View event-with-location.json
{
"@context": "https://www.openactive.io/ns/oa.jsonld",
"type": "Event",
"name": "Tai chi Class",
"description": "A tutored beginner's class that will involve demonstrates and a set of warm-up activities. Everyone welcome",
"id": "http://api.example.org/events/1",
"url": "http://www.example.org/events/1",
"startDate": "2017-03-22T20:00:00Z",
"endDate": "2017-03-22T21:00:00Z",
"duration": "PT60M",
@ldodds
ldodds / custom.jsonld
Last active Apr 23, 2018
Example of a simple custom JSON-LD context
View custom.jsonld
{
"@context":{
"label":"http://www.w3.org/2000/01/rdf-schema#label",
"xsd":"http://www.w3.org/2001/XMLSchema#",
"ext":"http://example.org/jsonld#",
"id":"@id"
},
"ext:myCustomProperty":{
"id":"ext:myCustomProperty",
"label":"This is the label"
View gist:cffbc4bf4a4c639e01b50dd1ab6cde4c
import osmnx as ox
ox.config(log_file=True, log_console=True, use_cache=True)
# configure the inline image display
img_folder = 'images'
extension = 'png'
size = 350
dpi = 120
street_widths = {'footway' : 0.5,
@ldodds
ldodds / open_data_paladin_spells.md
Last active Dec 11, 2018
Spells for open data paladins
View open_data_paladin_spells.md

Spells for Open Data Paladins:

Level 1

  • Resistance: subject gains +1 savings throws against publisher excuses
  • Endure Elements: exist comfortably in XML workflows

Level 2

  • Remove PDF: frees one or more datasets from a document
View pages.csv
We can't make this file beautiful and searchable because it's too large.
"Title","Slug","Catalogue_URL","Catalogue_Id","Start_Date","End_Date","Page","URL","Blank","Date","Main_Performance","Second_Performance"
"A collection of playbills from Theatre Royal, Bath 1812-1818","1812-1818","http://catalogue.bl.uk/primo_library/libweb/action/dlDisplay.do?vid=BLVU1&afterPDS=true&institution=BL&docId=BLL01016661285","vdc_100022589024.0x000002","1815-01-03","1818-12-31",1,"http://playbill-images.datasulis.org/1812-1818/1812-1818_1.jpg",,,,
"A collection of playbills from Theatre Royal, Bath 1812-1818","1812-1818","http://catalogue.bl.uk/primo_library/libweb/action/dlDisplay.do?vid=BLVU1&afterPDS=true&institution=BL&docId=BLL01016661285","vdc_100022589024.0x000002","1815-01-03","1818-12-31",2,"http://playbill-images.datasulis.org/1812-1818/1812-1818_2.jpg",,,,
"A collection of playbills from Theatre Royal, Bath 1812-1818","1812-1818","http://catalogue.bl.uk/primo_library/libweb/action/dlDisplay.do?vid=BLVU1&afterPDS=true&institution=BL&docId=BLL01016661285","vdc_100022589024.0x000002","1815
You can’t perform that action at this time.