Skip to content

Instantly share code, notes, and snippets.

@mgeeky
mgeeky / collect-gpw.py
Last active February 22, 2024 21:44
Script that collects data from GPW (Warsaw Stock Exchange) and corellates it with stock details retrieved from Money.pl quotes. As the result two CSV files will be generated - one with full results, and second with results filtered by B. Graham conditions.
#!/usr/bin/python
#
# Skrypt pobierajacy obecne wskazniki spolek ze strony GPW,
# po czym dla kazdej spolki wczytujacy parametry jej notowan i akcji
# ze strony Money.pl. Rezultatem dzialania sa dwa pliki CSV gotowe do zaimportowania
# i obrobienia w Excelu. Pierwszy plik - out.csv zawiera wszystkie dane spolek, drugi
# csv_filtered zawiera dane odfiltrowane po restrykcyjnych kryteriach Benjamina Grahama,
# autora Inteligentnego Inwestora.
#
@cardil
cardil / CompositionJava7LombokExample.java
Created October 15, 2015 10:12
Example of composition usage in Java 7 & 8 insead of JavaScript. Follow up to: https://www.youtube.com/watch?v=wfMtDGfHWpA
import lombok.Delegate;
interface Barker {
void bark();
class DefaultImpl implements Barker {
@Override
public void bark() {
System.out.println("Bark, Bark!");
}