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
class SomeControl | |
{ | |
public onSomeEvent = null; | |
private function onFormSuccess() | |
{ | |
if(isCallable($this->onSomeEvent)) { | |
$this->onSomeEvent(); | |
} | |
} |
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
FROM php:7.2.4-fpm-stretch | |
RUN \ | |
apt-get update && \ | |
apt-get install -y nano git curl msmtp libpq-dev && \ | |
docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \ | |
docker-php-ext-install pdo pdo_pgsql pgsql | |
RUN \ | |
apt-get install -y zlib1g-dev && \ |
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
### Dockerfile . | |
FROM node:latest | |
ENV APP_ROOT /app | |
RUN mkdir $APP_ROOT | |
WORKDIR $APP_ROOT | |
RUN npm i -g @angular/cli \ | |
&& npm i -g typescript |
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
1) pomocí cyklu for, while a do while vypsat čísla 1-10 | |
2.a) pomocí nějakého cyklu vypsat čtverec 6x7 | |
******* | |
******* | |
******* | |
******* | |
******* | |
******* |
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
version: "2" | |
services: | |
db: | |
image: mysql | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_DATABASE: myDb | |
MYSQL_USER: user | |
MYSQL_PASSWORD: test |
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
GNU nano 4.7 main.go Změněno | |
package main | |
import "fmt" | |
type Foo struct { | |
Name string | |
} | |
func getSlices() []Foo { |
OlderNewer