Skip to content

Instantly share code, notes, and snippets.

@tdoumas
tdoumas / afm-validator.js
Created December 9, 2013 16:44
Αλγόριθμος ορθότητας ΑΦΜ Greek Tax Registration Number Validation (AFM)
// Greek Tax Registration Number Validation (AFM)
// Αλγόριθμος ορθότητας ΑΦΜ
function validateAFM(afm) {
if (!afm.match(/^\d{9}$/) || afm == '000000000')
return false;
var m = 1, sum = 0;
for (var i = 7; i >= 0; i--) {
m *= 2;
sum += afm.charAt(i) * m;
@tdoumas
tdoumas / Waher-style.xml
Created October 22, 2013 09:06
http://waher.net/archives/1013 Custom style for Notepad++ Waher-style
<!--
File name: Waher-style.xml
Style Name: Waher-style
Description: Custom style for Notepad++
Inspired by the Jani Kesanen modification of and the original Zenburn colorscheme for Vim by Jani Nurminen.
Supported languages: PHP,MySQL,Javascript,XML,HTML,CSS,INI
Created by: Kristo Vaher (kristo@waher.net)
Released: 04.05.2010
License: GNU Free License.