Skip to content

Instantly share code, notes, and snippets.

using System;
int? x = 3;
if (x is int)
Console.WriteLine(x);
x = null;
if (x is null)
Console.WriteLine("x is null");
[HttpPost]
[ApiExplorerSettings(GroupName = "v2")]
public void Post([FromBody]Product product)
@M2vH
M2vH / Snake.cs
Last active December 5, 2019 13:02
My personal view on Snake from @JerryNixon
// based on the work of JerryNixon
// find origin code here
// https://gist.github.com/JerryNixon/52e2821cdf888a3c492e22397c4b5dda
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading;
@M2vH
M2vH / Snake.cs
Created December 5, 2019 12:43 — forked from JerryNixon/Snake.cs
The simple Snake game in C# for the Windows Console
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading;
namespace Snake
{
public enum Direction { Stop, Up, Down, Left, Right }
function myCircleFunction() {
var x = document.getElementById("my_circle_svg");
if (x.style.width === "100%") {
x.style.width = "50%";
} else {
x.style.width = "100%";
}
}
@M2vH
M2vH / anz_game_1.html
Last active April 14, 2016 11:24
panther anzeigentafel
<html>
<body>
<table style="width:100%; padding:15px; background-color:black;">
<tr>
<th style="width:40%"><h7>Home</h7></th>
<th style="width:20%"><h3>Game 1</h5></th>
<th style="width:40%"><h7>Away</h7></th>
</tr>
<tr>
<td style="padding: 15px; text-align:center"><h3>Mönchengladbach Wolfpack</h3></td>