Skip to content

Instantly share code, notes, and snippets.

@fabiovalse
fabiovalse / README.md
Last active January 20, 2024 19:56
Regular Polygon Vertices Generator

This script allows to generate the vertices, of a regular polygon, as svg circles. It is possible to specify:

  • the number of polygon sides;
  • the radius of the polygon;
  • the svg width and height.

The vertices coordinates are generated splitting a circumference in N parts, corresponding to the polygon sides. If N=1 then the vertice coordinates correspond to the center of the circumference.

@fabiovalse
fabiovalse / .htaccess
Last active January 4, 2016 05:39
Server Sent Events based PHP Debugger
Header set Access-Control-Allow-Origin "*"
@fabiovalse
fabiovalse / README.md
Last active June 16, 2017 14:42
HTML5 DEMO: GEOLOCATION

The following demo intends to describe how to use the HTML5 Geolocation feature. The gist includes three step files:

  • STEP1 index3.html: how to access to the geographical position of a user using the position object;
  • STEP2 index2.html: how to show on a Google Map the geographical position of a user;
  • STEP3 index.html: it is equal to the previous one except for the error handling.
@fabiovalse
fabiovalse / README.md
Last active August 29, 2015 14:01
Highcharts Bar Chart using TourPedia Data

This bar chart is constructed using highcharts and it uses the TourPedia data. TourPedia contains information about accommodations, restaurants, points of interest and attractions of different places in Europe. Now it provides information about Amsterdam, Barcelona, Berlin, Dubai, London, Paris, Rome and Tuscany. The bar chart shows the amounts of venues grouped by city and venue category.

@fabiovalse
fabiovalse / README.md
Last active August 29, 2015 14:01
Highcharts Pie-Donut Chart using TourPedia Data

This pie donut chart is constructed using highcharts and it uses the TourPedia data. TourPedia contains information about accommodations, restaurants, points of interest and attractions of different places in Europe. Now it provides information about Amsterdam, Barcelona, Berlin, Dubai, London, Paris, Rome and Tuscany. The pie donut chart shows, in the inner pie, the amount of data grouped by city and, in the outer donut, the amount of data grouped by venue categories for a certain city.

@fabiovalse
fabiovalse / README.md
Last active August 29, 2015 14:02
Point on Archimedean Spiral
@fabiovalse
fabiovalse / README.md
Last active August 29, 2015 14:02
LOD CNR MI TUTORIAL - Example 1
@fabiovalse
fabiovalse / README.md
Last active August 29, 2015 14:02
LOD CNR MI TUTORIAL - Example 2
@fabiovalse
fabiovalse / README.md
Last active August 29, 2015 14:02
LOD CNR MI TUTORIAL - Example 3

The aim of this gist is to show how to handle the execution of simple SPARQL query over the DBpedia SPARQL endpoint using Javascript, JQuery and AJAX.

The difference between this gist and the previous gists [1] [2] is the handling of multiple table fields.

@fabiovalse
fabiovalse / README.md
Last active August 29, 2015 14:02
LOD CNR MI TUTORIAL - Clavius Example 1

The aim of this gist is to show how to handle the execution of simple SPARQL query over the DBpedia SPARQL endpoint using Javascript, JQuery and AJAX.

Christopher Clavius (25 March 1538 – 6 February 1612) was a German Jesuit mathematician and astronomer who was the main architect of the modern Gregorian calendar. In his last years he was probably the most respected astronomer in Europe and his textbooks were used for astronomical education for over fifty years in and even out of Europe.

The following code shows how to create a simple interface containing the persons lived at Clavius time. Each person is represented with the abstract of the DBpedia entity and with an image if available.