Skip to content

Instantly share code, notes, and snippets.

View basepack's full-sized avatar

Basepack basepack

  • Cannect
  • Netherlands
View GitHub Profile
@xtrasmal
xtrasmal / 1.Directory_structure.js
Last active May 19, 2020 16:30
Use vuex all the time.. it's pretty simple to setup. NO SPA..cause.. yeah.. I dont like spa's
// Based on Laravel's base setup. This is the directory structure until the component
// later on, below this files, I'll show the contents of app.js and store.js
[assets]
|-- [sass]
|-- [js]
|-- app.js
|-- store.js
|-- setup.js
|-- [components]
@christiaanwesterbeek
christiaanwesterbeek / splitsAdres.js
Last active June 6, 2024 14:55
Splitsen van een nederlands adres naar straat, huisnummer en toevoeging middels een regular expression. Deutsch-Adressen werden jetzt auch unterstützt.
let re = /^(\d*[\wäöüß\d '\/\\\-\.]+)[,\s]+(\d+)\s*([\wäöüß\d\-\/]*)$/i
let adressen = [
'Dorpstraat 2',
'Dorpstr. 2',
'Laan 1933 2',
'18 Septemberplein 12',
'Kerkstraat 42-f3',
'Kerk straat 2b',
'42nd street, 1337a',
'1e Constantijn Huigensstraat 9b',