Skip to content

Instantly share code, notes, and snippets.

@maciejniedzielski
maciejniedzielski / vat-numbers.json
Created May 24, 2019 10:25
European countries VAT Numbers
{
"AT": {
"country": "Austria",
"regex": "^(AT)?U[0-9]{8}$"
},
"BE": {
"country": "Belgium",
"regex": "^(BE)?0[0-9]{9}$"
},
"BG": {
@maciejniedzielski
maciejniedzielski / postal-codes.json
Last active May 24, 2019 10:26
Postal Codes regex JSON
{
"AF": {
"Country": "Afghanistan",
"Regex": "^\\d{4}$"
},
"AX": {
"Country": "Åland Islands",
"Regex": "^\\d{5}$"
},
"AL": {
console.image = src => {
const image = new Image();
image.onload = () => console.log('%c+', `font-size: 0; padding: ${image.height}px ${image.width}px 0 0; background: url(${src});`);
image.src = src;
}