Instantly share code, notes, and snippets.

View url_testing.csv
List Field List confirmed? Status URL
AE-ACCI url True error connecting https://www.ajmanchamber.ae/en/Pages/default.aspx
AE-ADCD url True 200 http://www.abudhabichamber.ae/English/E-Services/Pages/EServices-Page.aspx?sm=1&ty=s
AE-AFZ url True 200 http://www.afz.gov.ae/
AE-DCCI url True 200 http://www.dcciinfo.com/
AE-DFSA url True 302 https://www.dfsa.ae/Public-Register/Firm
AE-DIFC url True 200 https://www.difc.ae/public-register
AE-DMCC url True 200 https://www.dmcc.ae/
AE-FCCI url True 200 http://www.fujcci.ae/
AE-FFZ url True 200 http://www.fujairahfreetradezone.com/appdir/company-listing.php
View data.threesixtygiving.org data.json
[
{
"title":"Grants to voluntary, community and social enterprise organisations 2016-17",
"description":"",
"identifier":"a002400000rHuAWAA0",
"license":"http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
"license_name":"Open Government Licence 3.0 (United Kingdom)",
"issued":"2017-10-11",
"modified":"2017-11-03T16:35:35+0000",
"publisher": {
View tm75_wgs84.py
from pyproj import Proj, transform
def irish_to_wgs84(northing, easting):
prj_tm75 = Proj(init='epsg:29902')
prj_wgs84 = Proj(proj='latlong', datum='WGS84')
x, y = transform(prj_tm75, prj_wgs84, northing, easting)
return x, y
print(irish_to_wgs84(248264, 442542))
## -6.9927979, 53.709714
View makefile
## download makefile to an empty directory
## create a directory within that called /output
## run 'make wards2012.shp' and 'make wards2012.geojson'
## the shapefile/geojson file will appear in /output
wards.zip:
curl -o 'wards.zip' 'http://osni-spatial-ni.opendata.arcgis.com/datasets/55cd419b2d2144de9565c9b8f73a226d_0.zip'
curl -o 'ni_outline.zip' 'http://osni-spatial-ni.opendata.arcgis.com/datasets/d9dfdaf77847401e81efc9471dcd09e1_0.zip'
OSNI_Open_Data_Largescale_Boundaries__NI_Outline.shp: ni_outline.zip
View female_65.csv
category name value
Circulatory CHD 0.1
Circulatory Stroke 0.1
Circulatory Other Circulatory 0.0
Respiratory Pneumonia 0.0
Respiratory Chronic Lower Respiratory Disease 0.1
Respiratory Other Respiratory 0.0
Cancer Lung 0.2
Cancer Breast 0.0
Cancer Prostate 0.0
View female_birth.csv
category name value
Circulatory CHD 0.1
Circulatory Stroke 0.1
Circulatory Other Circulatory -0.1
Respiratory Pneumonia 0.1
Respiratory Chronic Lower Respiratory Disease 0.0
Respiratory Other Respiratory 0.0
Cancer Lung 0.0
Cancer Breast 0.0
Cancer Prostate 0.0
View female_65.csv
category name value
Circulatory CHD 0.5
Circulatory Stroke 0.1
Circulatory Other Circulatory 0.2
Respiratory Pneumonia 0.1
Respiratory Chronic Lower Respiratory Disease 0.5
Respiratory Other Respiratory 0.1
Cancer Lung 0.5
Cancer Breast 0.0
Cancer Prostate 0.0
View ccni_extra
Charity_number,Other_names
100005,SCNI
100006,LVRT
100008,Advice NI
100009,RCN
100011,Brookeborough Controlled Primary School Parent Teacher Support Association
100012,NICVA
100013,BBNI
100015,NWCN
100016,N/A
View sessions.json
[{
"startDate": "2017-06-06T13:10:00Z",
"endDate": "2017-06-06T15:45:00Z",
"name": "Swim For All",
"genderRestriction": "mixed",
"level": "All",
"url": "https://better.org.uk/leisure-centre/belfast/ballysillan-leisure-centre/timetable",
"image": "https://assets.better.org.uk/uploads/asset/attachment/27354/Homepage_Panels-Sport_Relief_2016.jpg",
"duration": "PT155M",
"location": {
View BobsNI.json
{
"layout":"odd-r",
"hexes": {
"E14000530":{"n":"Aldershot","q":-3,"r":-11,"a":"SE","u":"UKJ","p":72430},
"E14000531":{"n":"Aldridge-Brownhills","q":-3,"r":-1,"a":"WM","u":"UKG","p":60215},
"E14000532":{"n":"Altrincham and Sale West","q":-7,"r":3,"a":"NW","u":"UKD","p":71511},
"E14000533":{"n":"Amber Valley","q":0,"r":2,"a":"EM","u":"UKF","p":69510},
"E14000534":{"n":"Arundel and South Downs","q":0,"r":-15,"a":"SE","u":"UKJ","p":77242},
"E14000535":{"n":"Ashfield","q":1,"r":2,"a":"EM","u":"UKF","p":77091},
"E14000536":{"n":"Ashford","q":12,"r":-13,"a":"SE","u":"UKJ","p":85177},