Skip to content

Instantly share code, notes, and snippets.

Dawid Paszko dejwid

Block or report user

Report or block dejwid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dejwid / letters.php
Last active Feb 28, 2018
Letters class example with exceptions and api message returns
View letters.php
class Letters{
private function getLetter($letter)
// get a ketter from the database
// bla bla blatriming, and geting for db
$letter = getFromDB(trim($letter));
if (!$letter) throw new \LetterException('Letter "'.$letter.'" was not found in the database');
return $letter;
dejwid / test.js
Last active Feb 8, 2017
Why i love es6
View test.js
var sum = function(a,b) {
return a+b;
var sum (a,b) => a+b;
var square = function(a) {
return a*a;
View Polish soundex
$soundex = [
'sz' => 's',
'cz' => 'c',
'ch' => 'h',
'ó' => 'u',
'ą' => 'o',
'ł' => 'l',
'dź' => 'z',
You can’t perform that action at this time.