Skip to content

Instantly share code, notes, and snippets.

View chrismedrela's full-sized avatar

Krzysztof Mędrela chrismedrela

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrismedrela
chrismedrela / exercise-1.py
Created June 24, 2018 11:09
Rozwiązania do post-worku
# Rozwiązanie do pierwszej części zadania - zastosowanie wzorca Command (polecenie).
'''
Poniżej znajduje się implementacja CLI (command line interface) do modułu
turtle, czyli Pythonowego odpowiednika LOGO. Wykorzystano tutaj wzorzec Template
Method (metoda szablonowa).
W pierwszym, obowiązkowym zadaniu, należy dodać wsparcie dla makr, tak aby można
było nagrać ciąg komend, a następnie odtworzyć ten sam ciąg przy pomocy
komendy "playback". W tym celu, należy dodać następujące komendy:
@chrismedrela
chrismedrela / proposal.md
Last active March 15, 2016 00:14
"Improving numerical routines in Scala Breeze" GSoC 2014 proposal.

"Improving numerical routines in Scala Breeze" GSoC 2014 proposal.

Abstract

Breeze is a great numerical processing library. However, it lacks some high-level functions that you can find in other libraries like SciPy. The second issue is that Breeze lacks documentation. This makes the entry barrier higher for new contributors.

My proposal is to revamp documentation and to introduce interpolation and

@chrismedrela
chrismedrela / interpolation.md
Last active August 29, 2015 13:56
Linear interpolation documentation

Interpolation

breeze.interp module supports interpolation facilities for data in one dimension (univariate interpolation). At this moment, there is only linear interpolation available, but you can easily write your own 1d interpolation facilities.

All examples in this document assumes that you've imported necessary modules: