Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Gratier ThomasG77

View GitHub Profile
View DCNeighborhoodBoundariesWaPo.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThomasG77
ThomasG77 / README.md
Last active Jul 5, 2018 — forked from elemoine/README.md
OpenLayers 3 Google Maps API
View README.md

Use OL3 and Google Maps together

This GIST provides an example of a Google Maps map with an OL3 map as control, to give users a Google base map with OL3 content on top.

Open the corresponding bl.ock to view the example in your browser.

Warning!

@ThomasG77
ThomasG77 / index.html
Created Feb 19, 2016 — forked from nolanlawson/index.html
Minimal WebWorker example
View index.html
<html>
<body>
<h1>Minimal WebWorker example</h1>
<p>Look in the console!</p>
<script src="main.js"></script>
</body>
</html>
@ThomasG77
ThomasG77 / Readme.md
Last active Jan 6, 2017 — forked from timelyportfolio/Readme.md
vega for time series chart with shaded blocks
View Readme.md

vega stocks spec forked to add shaded blocks

Often time series charts can be enhanced by shaded blocks to highlight events or periods as shown by this example which uses the R package xtsExtra. Vega specs already allow this functionality, and it is fairly easy to implement.

I added an events object to the JSON data array.

    {
      "name": "events",
      "values": [
        {"name":"Test1", "start":"Apr 2000", "end":"Mar 2003"},
@ThomasG77
ThomasG77 / .block
Created Mar 3, 2017 — forked from veltman/.block
Scribble map
View .block
height: 600
View install.sh
hg clone https://bitbucket.org/tiax/bitbucket-issues-cli # Fork repo with support for Git on Bitbucket
cd bitbucket-issues-cli
hg patch ../patch-bitbucket-issues-cli-1
@ThomasG77
ThomasG77 / README.md
Created Nov 24, 2017 — forked from tmcw/README.md
Leaflet With simplestyle Markers
View README.md
@ThomasG77
ThomasG77 / .gitignore
Created Feb 28, 2018 — forked from tschaub/.gitignore
OpenLayers + Webpack
View .gitignore
/node_modules/
bundle.js
@ThomasG77
ThomasG77 / README.md
Created Jul 12, 2018 — forked from tmcw/README.md
Line Chart
View README.md
@ThomasG77
ThomasG77 / README.md
Last active Jul 24, 2018 — forked from rveciana/README.md
Using JSTS to measure how far a line travels through a polygon
View README.md

Example to ilustrate this question at gis.stackoverflow.

We choose to replace Turf with JSTS.

If the result is more complex (i.e. the resulting intersection is a polyline), the algorithm should be repeated for each part in the polygon.