@Value // Lombok annotation.
// Generates all private final fields, an all-args-constructor,
// getters (no setters), toString(), etc...
class User {
Add this script to Tampermonkey to autoremove popups from d20pfsrd.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function validateFiscalCode($fiscalCode) { | |
$regex = "/^[A-Z]{6}\d{2}[A-G]\d{2}[A-Z]\d{3}[A-Z]$/"; | |
return preg_match($regex, trim($fiscalCode, " ")); | |
} | |
function birthYear($fiscalCode) { | |
$birthYear = substr($fiscalCode, 6, 2); | |
if ($birthYear <= "99" && $birthYear > "25") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Usage: python3 calculate.py "path/to/file" | |
PRE: input file format example. csv-like file: | |
unitary cost, moltiplicator (optional), name or descriptor | |
Scrolls | |
12,5 5x Mage Armor scroll (CL1) | |
12,5 2x Shield scroll (CL1) | |
37,5 2 Shield scroll (CL3) |