Skip to content

Instantly share code, notes, and snippets.

View janbarasek's full-sized avatar
🏠
Working from Prague

Jan Barášek janbarasek

🏠
Working from Prague
View GitHub Profile
const checkDph = async (dic: string) => {
if (!dic.startsWith('CZ')) {
throw new Error('DIČ musí začínat "CZ".');
}
const baseUrl = 'https://adisreg.mfcr.cz/adistc/adis/idpr_pub/dph';
const url = `${baseUrl}/pokles`;
try {
const response = await axios.get(url, {
@janbarasek
janbarasek / Expressions.php
Created April 3, 2016 08:13 — forked from ircmaxell/Expressions.php
A math parser and evaluator implementation
<?php
class Parenthesis extends TerminalExpression {
protected $precidence = 6;
public function operate(Stack $stack) {
}
public function getPrecidence() {
return $this->precidence;