Skip to content

Instantly share code, notes, and snippets.

View Szeliga's full-sized avatar

Szymon Szeliga Szeliga

View GitHub Profile
@Szeliga
Szeliga / resume.json
Last active December 3, 2020 09:06
resume.json
{
"basics": {
"name": "Szymon Szeliga",
"label": "Software Engineer",
"picture": "http://www.gravatar.com/avatar/9f51c29157a82507ca44f5f9617ba26c?d=404&s=250",
"email": "szeliga.szymon@gmail.com",
"phone": "535 888 224",
"summary": "Detail-oriented engineer with over 9 years of professional experience, that is capable of designing, implementing, and maintaining complete system solutions using the right tool for the job",
"location": {
"address": "ul. Pochyła 15/4D",
@Szeliga
Szeliga / date_dimenion.sql
Last active January 12, 2023 17:19
Data warehouse date dimenion script
CREATE SCHEMA IF NOT EXISTS dimensions;
DROP TABLE dimensions.dates;
CREATE TABLE dimensions.dates (
id SERIAL PRIMARY KEY,
date date,
@Szeliga
Szeliga / install-quake3.sh
Last active January 12, 2018 16:17 — forked from simonewebdesign/install-quake3.sh
Install Quake 3: Arena on a mac
#!/bin/bash
# Install Quake 3: Arena on a mac
# Copyright (c) 2016 simonewebdesign
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
@Szeliga
Szeliga / .vimrc
Created September 19, 2017 12:59
vimrc
set nocompatible
filetype on
filetype off
set encoding=utf-8
let &t_Co=256
set linespace=0
set lazyredraw
set ttyfast
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
@Szeliga
Szeliga / leasing.rb
Created June 7, 2017 12:16
Koszta prowadzenia dzialalnosci
puts "Podaj dochod netto: "
total_income = gets.to_i
puts "Podaj rate leasingu netto"
leasing_payment = gets.to_i
leasing_payment_gross = (leasing_payment * 1.23).round(2)
vat = (leasing_payment_gross - leasing_payment).round(2)
puts "Rata Brutto #{leasing_payment_gross}"
puts "VAT #{vat}"
@Szeliga
Szeliga / piły.md
Created April 28, 2017 12:46
Rodzaje pił

Rodzaje pił

Płatnice

Przeznaczone do szybkiego i zgrubnego docinania. Ważne aby zęby były hartowane, dzięki temu, piła się nie stępi. Polecane są piły typu Jet Cut od firmy Stanley, ze względu na sposób ostrzenia i hartowania.

Płatnice można klasyfikować za pomocą parametru TPI - Teeth Per Inch. W zależności od tego parametru, rozróżniamy 2 typy płatnic:

@Szeliga
Szeliga / vector-operations
Created September 7, 2016 07:46
Vector operations
## Foreword
I was always thrilled about learning new stuff, and recently that new stuff happened to be Go.
Why Go? I was hesitating between Rust, Elixir and Go. After some googling I found out that Go is the fastest of the three and the most mature one.
I've always enjoyed implementing raytracing algorithms, it is the most rewarding kind of programming, when after hours of brain-twisting programming you can see the result in a form of a beautiful, rendered image.
I've also found that implementing raytracers is the fastest way to learn a new language, because it touches on all the basic concepts:
* collections
* file I/O
@Szeliga
Szeliga / pointer_receiver.go
Last active September 7, 2016 07:41
02-vector-operations
func (a *Vector) Add(b Vector) Vector {
a.X += b.X
a.Y += b.Y
a.Z += b.Z
return a
}
create table mydata_real (id serial, date date, value text);
create table mydata_real_y2015 (check (date >= '2015-01-01' and date < '2016-01-01')) inherits (mydata_real);
create table mydata_real_y2016 (check (date >= '2016-01-01' and date < '2017-01-01')) inherits (mydata_real);
create function mydata_nope() returns trigger language plpgsql
as $f$ begin raise exception 'insert on wrong table'; return NULL; end; $f$;
create trigger mydata_nope before insert on mydata_real execute procedure mydata_nope();
create view mydata as select * from mydata_real;
@Szeliga
Szeliga / parser.rb
Last active March 9, 2016 09:31
Parsing UTF-16LE CSV file
# Open your terminal, navigate to the folder were the book.csv file is residing
# and type irb, when the interactive ruby console launches, type in the following
# it will print first 5 ISBN-13 numbers
require 'csv'
i = 0; CSV.foreach('book.csv', headers: :first_row, encoding: 'UTF-16LE:UTF-8') { |line| break if i == 5; puts line['isbn13']; i += 1 }