Skip to content

Instantly share code, notes, and snippets.

View wilgert's full-sized avatar

Wilgert Velinga wilgert

View GitHub Profile
@wilgert
wilgert / README.md
Last active March 26, 2022 18:51
Public guestbook using Netlify Functions
  1. Add Form to HTML
  <form netlify name="guestbook" method="POST">
      <label>
        Jouw naam:
        <input name="name" type="text" required="required" minlength="2" />
      </label>

      <label>
 Bericht:
/*
* NB: to get this working you will need to
* 1. copy a test-setup.ts file from one of the apps that uses Jest to the root of your project
* 2. replace YOUR_WORK_SPACE_NAME with the name of your work space on line 68
*/
const path = require('path');
const angularConfig = require('./angular.json');
const excludingE2E = Object.keys(angularConfig.projects)
@wilgert
wilgert / wallaby.karma.js
Last active January 26, 2020 15:11
Dynamic Wallaby config that runs Karma/Jasmine unit test for all apps and libs in your Nx workspace that use it as a testrunner. Requires a wallabyTest.ts in root of the workspace.
var wallabyWebpack = require('wallaby-webpack');
var path = require('path');
const angularConfig = require('./angular.json');
var compilerOptions = Object.assign(
require('./tsconfig.json').compilerOptions,
require('./apps/frontend/tsconfig.spec.json').compilerOptions
);
compilerOptions.module = 'CommonJs';
/*
* What is this?
* This is an automated "conductor" for the beautiful web app In C by Tero Pavianen
*
* How to use it?
* 1. Go to https://teropa.info/in-c/
* 2. Click on the Play button after it has finished loading
* 3. Open the Chrome Developer Tools
* 4. Paste the Code below in the Console tab and press Enter
* 5. Listen to your personal unique performance of In C
@wilgert
wilgert / dutch_banks.json
Last active January 14, 2022 09:37
All Dutch banks as JSON dictionary. Use this to calculate the BIC number by taking the bank_identifier part from the IBAN.
{
"ABNA":{
"BIC":"ABNANL2A",
"bank_name":"ABN AMRO BANK N.V"
},
"AEGO":{
"BIC":"AEGONL2U",
"bank_name":"AEGON BANK NV"
},
"ANDL":{