Generate new ssh key pair
ssh-keygen -t rsa -b 4096 -C "iam@here.com"
- Give it a different name than default, e.g.
id_rsa_iam
. Add this key to the ssh agent,
cd ~/.ssh
andssh-add id_rsa_iam
If you get the error 'Could not open a connection to your authentication agent.' then start the ssh-agent with
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 |
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
\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
download libblas.dll, libblas.lib, liblapack.dll, liblapack.lib from https://icl.cs.utk.edu/lapack-for-windows/lapack/#libraries_mingw to lib/ | |
Add to `stack.yaml`: | |
extra-deps: | |
- bindings-levmar-1.1.0.5 | |
# - levmar-1.2.1.8 -- Does not support base 4.9 at the moment. A more up to date fork is used | |
- github: PHPirates/levmar | |
commit: f36ef9ae1c0d44950a28a445d4f459257f77dd4d |
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
# author: Sten Wessel | |
# Instructions: | |
# Put this file on the same level as your LaTeX file | |
# Put your R scripts in a folder scripts/ | |
# [IntelliJ] If you want to run your R scripts, make a run configuration as with working directory the folder this file is in | |
# In your R script, make comments like "## ---- part.a ----" to define sections | |
# In this file, edit the definition of R script content (the HOMEWORK.1 list) | |
# In the preamble in your LaTeX file, add the following: | |
# |
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
/** | |
* @file pointers | |
* @brief A hello world example. | |
* | |
* This a file with some pointers. Documentation can be generated with doxygen. | |
*/ | |
#include <stdio.h> | |
/** |
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
^!S:: | |
{ | |
Run, "C:\Windows\Sysnative\SnippingTool.exe"\ | |
WinWaitActive, Snipping Tool | |
Send ^n | |
} |
- Install a new python version from https://www.python.org/downloads/windows/ the 64 bit web installer
- Make sure your PATH only contains the paths to the new version
- Delete the old python
- Restart your pc and test in cmd with
python -V
- Update global setuptools by running in cmd (sudo)
python -m pip install -U setuptools
. If this fails with a PermissionError, trypip install setuptools --upgrade --ignore-installed
.
OlderNewer