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
### Keybase proof | |
I hereby claim: | |
* I am lenidh on github. | |
* I am lenidh (https://keybase.io/lenidh) on keybase. | |
* I have a public key ASDFfuUW5TkiaTQkwqDWLG3Uh0Z_SfK1zAYOcGCSgB37WAo | |
To claim this, I am signing this object: |
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
/* Copyright (c) 2016 Moritz J. Heindl | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in |
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
#include <complex.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define M_PI 3.1415926535897932384626433832795L | |
int main(int argc, char** argv) { | |
int n = 0; | |
if(argc > 1) n = atoi(argv[1]); |
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
KBD de-linux "Deutsch (Linux)" | |
COPYRIGHT "(c) 2014 lenidh" | |
COMPANY "lenidh" | |
LOCALENAME "de-DE" | |
LOCALEID "00000407" |
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
# Debian apt(8) completion -*- shell-script -*- | |
_apt() | |
{ | |
local cur prev words cword | |
_init_completion || return | |
local dashoptions='-h --help -v --version -c --config-file -o --option -t -a' | |
local special i |
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
namespace De.Lenidh.Misc | |
{ | |
using System; | |
using System.ComponentModel.DataAnnotations; | |
/// <summary> | |
/// Specifies that a data field value is conditional required. | |
/// </summary> | |
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = false)] | |
public class RequiredIfAttribute : RequiredAttribute |
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
package de.lenidh.misc; | |
/** | |
* Implementation of the Miller-Rabin primality test. | |
*/ | |
public final class MillerRabin { | |
private MillerRabin() { | |
} |