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
dataContractSpecification: 1.2.0 | |
id: orders-latest | |
info: | |
title: Orders Latest | |
version: 2.0.0 | |
description: | | |
Successful customer orders in the webshop. | |
All orders since 2020-01-01. | |
Orders with their line items are in their current state (no history included). | |
owner: Checkout Team |
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
from crewai import LLM | |
from pydantic import BaseModel | |
import os | |
class Dog(BaseModel): | |
name: str | |
age: int | |
breed: str | |
llm = LLM( |
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
import streamlit as st | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import io | |
from kbcstorage.client import Client | |
st.set_page_config(page_title="X Builder X", layout="wide") | |
df = pd.read_csv('/data/in/tables/fake_table.csv') |
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 | |
.... | |
private function requireUser(string $idOrEmail): Model_Row_Admin | |
{ | |
if (!$this->tokenProvider->getAdmin()->isSuperAdmin()) { | |
throw new HttpException("You can't access other users", 403); | |
} |
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 | |
//original string from textarea | |
$string = "1. Vojta\n 2. Zdenda \n 3.Kamarádovi rodiče"; | |
$lines = explode("\n", $string); | |
print_r($lines); | |
foreach ($lines as $line) { | |
$matches = []; | |
preg_match('/^([1-9\ ]*)[\.\ ]*(.*)/', $line, $matches); | |
//if no matches found in arrray will be 0 rows | |
if(count($matches) > 0) { |
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
FROM docker-registry.----.cz/platform/webserver-libs2 | |
ENV DOCUMENT_ROOT_DIR=web | |
ENV SYMFONY_ENV=prod | |
ENV SYMFONY_DEBUG=0 | |
WORKDIR /var/www/html | |
# install vendors | |
COPY composer.* ./ |
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 | |
namespace AdFinance\SmartEmailing\Test\Checker; | |
use AdFinance\SmartEmailing\Checker\MxRecordChecker; | |
class MxCheckerTest extends \PHPUnit_Framework_TestCase | |
{ |
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 | |
namespace AppBundle\Controller; | |
use AppBundle\CalculationEntity; | |
use AppBundle\CalculationHandler; | |
use AppBundle\LoanParameterDataProvider; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use AdFinance\Constants; |
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 | |
/** | |
* @DI\Service("contract_bundle.contract_factory.form_factory") | |
*/ | |
class FormFactory | |
{ | |
/** | |
* @var FormFactoryInterface | |
*/ | |
private $formFactory; |
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
/** | |
* Zaregistruje všechny repozitáře pro kalkulačky do kontejneru | |
* Klíč calculators.repositories.mobile_interner_repository | |
* | |
* @param IDependencyContainer $container | |
*/ | |
private function bootstrapCalcRepositories(IDependencyContainer $container) | |
{ | |
foreach ( new \DirectoryIterator(__DIR__ . '/Calculators/Repositories/') as $fileInfo) { | |
if($fileInfo->isFile() && ($fileInfo->getFilename() != 'AbstractRepository.php')){ |
NewerOlder