- https://twitter.com/mikehadlow/status/1186332184086495233
- https://github.com/mikehadlow/Journeys
- Haskell: https://blog.ploeh.dk/2019/10/28/a-basic-haskell-solution-to-the-robot-journeys-coding-exercise/
defmodule RobotJourney do
- task: PowerShell@2 | |
displayName: "NuGet packages vulnerabilities scan" | |
continueOnError: false | |
inputs: | |
filePath: '$(Build.SourcesDirectory)/nuget-vunerability-build-fail-report.ps1' | |
arguments: '''$(Build.SourcesDirectory)'' ''$(SolutionName)''' | |
pwsh: true |
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) | |
{ | |
if (env.IsDevelopment()) | |
{ | |
app.UseDeveloperExceptionPage(); | |
if (Dependencies.DevOptions.UseWebpackDevMiddleware) // comes from appsettings | |
{ | |
#pragma warning disable CS0618 // Type or member is obsolete | |
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions | |
{ |
This is a basic implementation of the game Tetris, but it's missing a few things intentionally and they're left as further exploration for the reader.
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TextAdventure | |
{ | |
class Exit | |
{ |
using System; | |
using System.Threading.Tasks; | |
using RabbitMQ.Client; | |
using RabbitMQ.Client.Events; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TextAdventure | |
{ | |
class Exit | |
{ |
using System; | |
namespace RomanNumerals | |
{ | |
class Program | |
{ | |
// Create rules in descending order | |
static Rule[] Rules = new Rule[] | |
{ | |
new Rule(1000, "M"), |
internal static IEnumerable<string> ReadLines(this string s) | |
{ | |
string line; | |
using (var sr = new StringReader(s)) | |
while ((line = sr.ReadLine()) != null) | |
yield return line; | |
} |
using System; | |
namespace GameOfLife { | |
public class LifeSimulation { | |
private int Heigth; | |
private int Width; | |
private bool[,] cells; | |
/// <summary> |