Skip to content

Instantly share code, notes, and snippets.

View jxpsert's full-sized avatar
🚒
looking at pictures of fire engines

Jasper Platenburg jxpsert

🚒
looking at pictures of fire engines
View GitHub Profile
@jxpsert
jxpsert / surveillancesorteerder.user.js
Last active July 1, 2024 09:29
SurveillanceSorteerder
// ==UserScript==
// @name Surveillance sorteerder
// @namespace http://tampermonkey.net/
// @version 2024-07-01
// @description Sorteer de routenamen in de dropdown
// @author Jxpsert
// @match https://www.meldkamerspel.com/buildings*
// @icon https://www.google.com/s2/favicons?sz=64&domain=meldkamerspel.com
// @grant none
// ==/UserScript==
// ==UserScript==
// @name MeldingSelector
// @namespace http://tampermonkey.net/
// @version 2024-05-09
// @description Meldingen kunnen openen in een nieuw tabblad
// @author Jasper Platenburg
// @match https://nijmegen.jouw-omgeving.nl/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=jouw-omgeving.nl
// @grant none
// ==/UserScript==
@jxpsert
jxpsert / script.js
Created December 6, 2023 08:33
Frequentiedatabase punten
// ==UserScript==
// @name Frequentiedatabase komma naar punt
// @namespace https://ptdk.nl/
// @version 0.1
// @description Verandert komma's in frequenties naar punten
// @author Jxpsert
// @match https://frequentiedatabase.eu/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=frequentiedatabase.eu
// @grant none
// ==/UserScript==
Postgis Plugin: ERROR: syntax error at or near "plant" LINE 45: OR power IN ('plant', 'substation', 'generator') ^ in executeQuery Full sql was: 'SELECT * FROM (SELECT way, name, religion, density, way_pixels, is_building, COALESCE(aeroway, golf, amenity, wetland, power, landuse, leisure, man_made, "natural", shop, tourism, highway, railway) AS feature FROM (SELECT way, COALESCE(name, '') AS name, ('aeroway_' || (CASE WHEN aeroway IN ('apron', 'aerodrome') THEN aeroway END)) AS aeroway, ('golf_' || (CASE WHEN (tags->'golf') IN ('rough', 'fairway', 'driving_range', 'water_hazard', 'green', 'bunker', 'tee') THEN tags->'golf' ELSE NULL END)) AS golf, ('amenity_' || (CASE WHEN amenity IN ('bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school', 'taxi', 'hospital', 'kindergarten', 'grave_yard', 'prison', 'place_of_worship', 'clinic', 'ferry_terminal', 'marketplace', 'community_centre', 'social_facility', 'arts_centre', 'parking_space', 'bus_station', 'fire_station', 'police') OR amenity IN ('par

$argon2id$v=19$m=512,t=256,p=1$9j4JCiWIdb1alcZt9sHNkw$ODG+PVwTUnf1iQVEsILWSmt/TLH5YZoCn7sFqcvALTk

import chalk from "chalk";
import fs from "fs";
import express from "express";
// import Endpoint from "./Endpoint.js";
import config from "./config.js";
const app = express();
fs.readdir("./endpoints", (err, files) => {
// get all endpoint files
class Endpoint {
constructor(endpoint) {
this.endpoint = endpoint;
}
format(s = 404, m = "Not found", d = {}) {
const f = {
status: s,
message: m,
data: d,
@jxpsert
jxpsert / thing.html
Created June 3, 2022 09:56
bootstrap issue
<div class="row row-cols-1 row-cols-md-2">
<div class="col-12 col-md-8 m-15px-tb">
<div class="contact-name name-text">
<h5>Gegevens van de2av</h5>
<br>
<form method="POST">
<label class="fw-bold" for="email">E-mailadres</label>
<input type="email" id="email" readonly="" class="changeFormControl form-control-plaintext" name="email"
placeholder="Email" value="example@example.com" required="">
$(".countdownclock").each(function (i, e) {
const $this = $(this);
const countdown = $this;
let button = e.parentElement.parentElement.parentElement.childNodes[2].childNodes[0];
console.log(button);
// console.log(button.childNodes);
countdown.text(turnTot(countdown.attr("data-time")));
let changet = setInterval(function () {
let newt = countdown.attr("data-time") - 1;
countdown.attr("data-time", newt);
@jxpsert
jxpsert / util.php
Created May 20, 2022 07:13
functie getAllRubrics
/*
Returns all rubrics as an array.
*/
function getAllRubrics() {
global $conn;
$sql = "SELECT * FROM rubriek ORDER BY rubriek, rubrieknaam ASC";
$stmt = sqlsrv_query($conn, $sql);
$newArr = [];