Skip to content

Instantly share code, notes, and snippets.

Avatar

Wilgert Velinga wilgert

View GitHub Profile
View wallaby.jest.js
/*
* 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 Jan 26, 2020
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.
View wallaby.karma.js
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';
View in-c-automatic-conductor.js
/*
* 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 Mar 27, 2019
All Dutch banks as JSON dictionary. Use this to calculate the BIC number by taking the bank_identifier part from the IBAN.
View dutch_banks.json
{
"ABNA":{
"BIC":"ABNANL2A",
"bank_name":"ABN AMRO BANK N.V"
},
"AEGO":{
"BIC":"AEGONL2U",
"bank_name":"AEGON BANK NV"
},
"ANDL":{
You can’t perform that action at this time.