I hereby claim:
- I am nigelhanlon on github.
- I am nigelhanlon (https://keybase.io/nigelhanlon) on keybase.
- I have a public key ASDFY4I4W9fjzNAr-NEC2tXrACSE1zQ7Af1sjN4zo6TIrwo
To claim this, I am signing this object:
{ | |
"type": "Feature", | |
"geometry": { | |
"type": "Point", | |
"coordinates": [-9.7427,51.9994] | |
}, | |
"properties": { | |
"name": "Carrauntoohil", | |
"elevation": 1038 | |
} |
function addGeoJSON(geojson){ | |
// Create a GeoJSON parser that will convert our features | |
// to something OpenLayers understands. | |
var geojson_format = new OpenLayers.Format.GeoJSON({ | |
'internalProjection': new OpenLayers.Projection("EPSG:900913"), | |
'externalProjection': new OpenLayers.Projection("EPSG:4326") | |
}); | |
// Create a vector layer that our features will sit on. | |
var vector_layer = new OpenLayers.Layer.Vector("Mountains"); |
/* | |
The MIT License (MIT) | |
Copyright (c) 2017 Nigel Hanlon | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
// | |
// Source adapted slightly from https://learn.adafruit.com/tmp36-temperature-sensor/using-a-temp-sensor. | |
// | |
//TMP36 Pin Variables | |
int sensorPin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to | |
//the resolution is 10 mV / degree centigrade with a | |
//500 mV offset to allow for negative temperatures | |
/* |
// See https://xclacksoverhead.org/home/about for more information. | |
// This adds a simple header via Hooks (https://www.fastify.io/docs/latest/Hooks/) | |
fastify.addHook('onResponse', (res, next) => { | |
res.set('X-Clacks-Overhead', 'GNU Terry Pratchett'); | |
next() | |
}) |
I hereby claim:
To claim this, I am signing this object:
This code relates to mercurius-js/mercurius#370 and is based on the sample code given in this Gist: https://gist.github.com/0x77dev/af60ef51e5405393c311f652ddd14289
Build: tsc *.ts Run: node first.service.js node gateway.js
Open browser to http://127.0.0.1:3030/playground