Skip to content

Instantly share code, notes, and snippets.

View XDRosenheim's full-sized avatar
🚩
I may never respond.

Rosenheim XDRosenheim

🚩
I may never respond.
View GitHub Profile
@XDRosenheim
XDRosenheim / getREKTson.rekt
Last active April 16, 2023 19:14
REKT Checklist
☐ Not REKT
☑ REKT
☑ Really Rekt
☑ REKTangle
☑ SHREKT
☑ REKT-it Ralph
☑ Total REKTall
☑ The Lord of the REKT
☑ The Usual SusREKTs
☑ North by NorthREKT
@XDRosenheim
XDRosenheim / MontyHall.cs
Created February 15, 2016 13:45
Is it better to change door at the Monty Hall problem?
using System;
namespace MontyHall {
internal class Program {
private static void Main() {
var rnd = new Random();
bool[] doors = { false, false, false };
const int iterations = 10000000;
var counter = 0;
var winsOnChange = 0;

Git Cheat Sheet

Commands

Getting Started

git init

or

git clone url

@XDRosenheim
XDRosenheim / colors.json
Last active June 29, 2023 19:25
[WIP] Colours with names and hex codes.
{
"Absolute zero" : "#0048BA",
"Acid green" : "#B0BF1A",
"Aero" : "#7CB9E8",
"Aero blue" : "#C9FFE5",
"African violet" : "#B284BE",
"Air Force blue (RAF)" : "#5D8AA8",
"Air Force blue (USAF)" : "#00308F",
"Air superiority blue" : "#72A0C1",
"Alabama crimson" : "#AF002A",
# Calculating a loan
def function(p, ir, d):
p = float(p)
d = int(d * 12)
if ir == 0:
return p / d
else:
ir = float((ir / 100) / 12)
temp1 = ir * ( 1 + ir ) ** d
temp2 = ( ( 1 + ir ) ** d) - 1

Keybase proof

I hereby claim:

  • I am xdrosenheim on github.
  • I am xdrosenheim (https://keybase.io/xdrosenheim) on keybase.
  • I have a public key ASAP-f4Yqps1CIpRx6uTXe7Skv4gvO9GGG4PllDfEvJF7Qo

To claim this, I am signing this object: