View error_handling.rs
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
// youtube.com/watch?v=wM6o70NAWUI | |
fn read_file(fnm: &str) -> Result<String, io::Error> { | |
let mut s = String::new(); | |
File::open(fnm)?.read_to_string(&mut s)?; | |
return Ok(s); | |
} | |
fn read_file_longer_version(fnm: &str) -> Result<String, io::Error> { | |
let f = File::open(fnm); |
View file.php
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 | |
public function testIdentityMap() | |
{ | |
Comment::query()->where(['id' => 1])->update(['content' => 'a']); // set default value for the first comment | |
$user = User::query()->find(1); | |
$user->name = 'David '.date('s'); | |
$user->save(); | |
$user2 = User::query()->find(1); |
View Nejcasteji-spatne-vyslovovana-slova.txt
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
unique - juːˈniːk | |
nullable - ˈnʌləbl | |
result - rɪˈzʌlt | |
event -ɪˈvent | |
query - ˈkwɪərɪ | |
key - kiː | |
partial - ˈpɑːʃəl | |
talk - tɔːk | |
walk - wɔːk | |
defer - dɪˈfɜː |
View gist:b79e4d17b6061b5b1fba2a4d93c266bd
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
Filip Procházka – Evolving architecture | |
https://www.youtube.com/watch?v=ZDQPZixsCXM | |
Filip Procházka - Doctrine - Jak si užít s DQL a kde se entity nehodí | |
https://www.youtube.com/watch?v=6mWS2NVtXs0 | |
Filip Procházka – Model s Doctrinou | |
https://www.youtube.com/watch?v=w9SZvgPtrT8 | |
Filip Procházka – Časté bezpečnostní chyby nejen v Nette aplikacích |
View ParamPath2.jsx
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
import { useCallback, useEffect, useState, useRef, Fragment} from 'react'; | |
import React from 'react'; | |
import Select from 'react-select'; | |
const defaultData = { | |
type: 'GroupControl', | |
data: { | |
operator: 'plus', | |
}, | |
children: [ |
View gist:29c2425feb4f1ca1b0a01b94bd00e5e8
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
https://www.alza.cz/porovnani.htm?c=ND510f70;ND510m50;NT047h45;NT047h49;NT047h60;NT088k40;NT088h2f;NT044s2;NT044s8;NT086x1i;NT044u2;NT086s1; |
View gist:3b9ed3d3b6ccecb53326506441d43808
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
https://www.czc.cz/samsung-s24f350-led-monitor-24/194681/produkt | |
https://www.czc.cz/aoc-24v2q-led-monitor-23-8/247331/produkt |
View gist:06744302421c45693b036db768738595
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
ac1557a5faf0a11685fc9ae201697a9ca59454a8 |
View smicka.py
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
#! python3 | |
import os, re | |
from datetime import datetime | |
from PIL import Image | |
SOURCE_DIR = 'C:/Users/David/Desktop/smicka/' | |
FINAL_PATH = 'C:/Users/David/Desktop/smicka.png' | |
pattern = re.compile('^[0-9]+\.(png|jpg|jpeg)$') | |
files = [] |
View 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
Test |