Skip to content

Instantly share code, notes, and snippets.

View jondef's full-sized avatar
🍵
Happily turning tea into { code; }

Jon Defilla jondef

🍵
Happily turning tea into { code; }
  • Zürich, Switzerland
  • 05:21 (UTC +01:00)
View GitHub Profile
package ch.zhaw.prog2.functional.streaming;
import ch.zhaw.prog2.functional.streaming.finance.CurrencyAmount;
import ch.zhaw.prog2.functional.streaming.finance.Payment;
import ch.zhaw.prog2.functional.streaming.humanresource.Employee;
import ch.zhaw.prog2.functional.streaming.humanresource.Person;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
package ch.zhaw.prog2.shoppinglist_product;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.when;
package ch.zhaw.prog2.fxmlcalculator;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
import glob
import os
import sys
from os import path
from os.path import expanduser
# CLion Activator v1.2
# By congard
# https://github.com/congard
# http://congard.pp.ua/support-me
@jondef
jondef / python_decorator_guide.md
Created March 8, 2020 12:39 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].