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
GNU nano 4.7 main.go Změněno | |
package main | |
import "fmt" | |
type Foo struct { | |
Name string | |
} | |
func getSlices() []Foo { |
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
version: "2" | |
services: | |
db: | |
image: mysql | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_DATABASE: myDb | |
MYSQL_USER: user | |
MYSQL_PASSWORD: test |
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
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 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
### 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 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 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 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
class SomeControl | |
{ | |
public onSomeEvent = null; | |
private function onFormSuccess() | |
{ | |
if(isCallable($this->onSomeEvent)) { | |
$this->onSomeEvent(); | |
} | |
} |
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
class SomeControl | |
{ | |
public onSomeEvent = null; | |
private function onFormSuccess() | |
{ | |
if(isCallable($this->onSomeEvent)) { | |
$this->onSomeEvent(); | |
} | |
} |
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
SELECT * | |
FROM e21 | |
INNER JOIN ( | |
SELECT GROUP_CONCAT(discount_amount) AS discount_amount, | |
GROUP_CONCAT(discount_type) AS discount_type, | |
discount_business_id, | |
discount_subcategory_id, | |
discount_evidence_number | |
FROM e21sle GROUP BY discount_business_id | |
) MAXD ON (business_id=MAXD.discount_business_id) |
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
<!DOCTYPE html> | |
<html> | |
<style> | |
#container { | |
width: 300px; | |
height: 300px; | |
margin: 0px auto; |
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 QtQuick 2.0 | |
import Sailfish.Silica 1.0 | |
Page { | |
id: imagePage | |
property alias currentIndex: listView.currentIndex | |
property alias model: listView.model | |
Drawer { | |
id: drawer |
NewerOlder