This file contains 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
public function sendTemplate(string $templateUuid, string $toEmail, array $variables = []): bool | |
{ | |
if (!filter_var($toEmail, FILTER_VALIDATE_EMAIL)) { | |
Log::error('invalid e-mail address provided ' . $toEmail); | |
return false; | |
} | |
$data = [ | |
"from" => [ |
This file contains 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
#!/bin/sh | |
export COUNTER=0 | |
mkdir -p filesrenamed | |
for f in CREDIT_RATING_PREV_*; do result=$(mv $f ${f/${f:0:19}/CREDITRATING_T3_}) ; ((COUNTER++)); done 2> /dev/null | |
# exit status https://pubs.opengroup.org/onlinepubs/7908799/xcu/mv.html | |
# v rámci toho for cyklu bych dal podmínku - napíšu to zvlášt ale ty to musíš dát do for |
This file contains 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
body { | |
margin: 0; | |
padding: 0; | |
background-color: lightblue; | |
height: 100vh; | |
} | |
#login .container #login-row #login-column #login-box { | |
margin-top: 120px; | |
max-width: 600px; |
This file contains 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
[ | |
{ | |
"url": "https://api.abalin.net", | |
"name": "Nameday API", | |
"description": "Nameday API" | |
}, | |
{ | |
"url": "https://appfactory.cz", | |
"name": "Appfactory", | |
"description": "Appfactory" |
This file contains 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 verifyIC($ic) | |
{ | |
// be liberal in what you receive | |
$ic = preg_replace('#\s+#', '', $ic); | |
// má požadovaný tvar? | |
if (!preg_match('#^\d{8}$#', $ic)) { | |
return FALSE; |