Skip to content

Instantly share code, notes, and snippets.

View hiddebraun-ma's full-sized avatar

Hidde Braun hiddebraun-ma

View GitHub Profile
@hiddebraun-ma
hiddebraun-ma / books.json
Created June 4, 2020 15:49
Voorbeeld hoe je metadata aan een JSON result toevoegen (dit moet je zelf gaan bouwen in de backend dan natuurlijk....)
{
"pagination": {
"total": 200,
"page": 2,
"total_pages": 20,
"pagesize": 10,
"next": 3,
"previous": 1
},
"data": [
@hiddebraun-ma
hiddebraun-ma / .env
Last active February 11, 2020 08:39
Controller
# TOEVOEGEN AAN .env
# Deze wordt in controller uitgelezen zodat het instelbaar is waar de email naartoe gaat
MAIL_TO=emailadres@vanontvanger.nl
@hiddebraun-ma
hiddebraun-ma / map.html
Last active September 3, 2019 20:31
Voorbeeld HERE.com map met clickable markers + info bubbles (vergeet niet de API key aan te passen!)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, width=device-width"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Voorbeeld met Markers</title>
<script src="https://js.api.here.com/v3/3.1/mapsjs-core.js" type="text/javascript" charset="utf-8"></script>
<script src="https://js.api.here.com/v3/3.1/mapsjs-service.js" type="text/javascript" charset="utf-8"></script>