Skip to content

Instantly share code, notes, and snippets.

View janmax's full-sized avatar

Jan Maximilian Michal janmax

View GitHub Profile
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 1cm;
padding: 5px;
border: 1px solid black;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
tr:nth-child(even){background-color: #f2f2f2}
.mytable {
margin: 1cm;
padding: 50px;
border: 1px solid black;
font-size: 100%;
font: inherit;
vertical-align: baseline;
border-collapse: collapse;
border-spacing: 10px;
}
################################################################################
# This file is executable (main) and contains two functions
# 1. one that approximates sin(x) for given x, and a give eps for precision
# with the following formula:
# (2i - 1)
# ___n i+1 x
# sin_n(x) = \ (-1) ------------
# /__i=0 (2i - 1)!
#
# 2. the other one is a simple computation of the faculty of a double with no
@janmax
janmax / FormatterTest.java
Created August 24, 2017 16:29
JUnit test suite
import static java.lang.System.out;
import java.util.Formatter;
import java.util.Locale;
import org.python.exceptions.TypeError;
import org.python.types.Int;
import org.junit.Test;
import org.junit.After;
import org.junit.AfterClass;