This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{filecontents}{main.bib} | |
@Book{knuth1990, | |
author = {Knuth, Donald E.}, | |
title = {The {\TeX}book}, | |
year = {1990}, | |
isbn = {0-201-13447-0}, | |
publisher = {Addison\,\textendash\,Wesley}, | |
} | |
\end{filecontents} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StuffContainer(val context: Context?) { | |
private val prefs = android.preference.PreferenceManager.getDefaultSharedPreferences(context) | |
/** This is stuff. */ | |
var stuff: Boolean | |
get() = prefs.getBoolean("stuffkey", false) | |
set(value) { | |
prefs.edit().putBoolean("stuffkey", value).apply() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigInteger | |
/** | |
* The extended euclidian algorithm for two numbers (BigIntegers included). Also prints a LaTeX tabular of all the steps. | |
* | |
* Looks for `ax + by = gcd(a, b)` where `a` and `b` are the input variables. | |
* [gcd] contains the gcd, [x] and [y] contain `x` and `y` as seen in the previous expression. | |
* | |
* @author Ruben Schellekens | |
* @author Thomas Schouten |
NewerOlder