View stripcs.ps1
function stripcs { | |
$acc = ""; | |
foreach($l in $input) { | |
$k = $l; | |
$i = $k.IndexOf("//"); | |
if ($k.Contains("~lcom~")) { | |
$i = $k.LastIndexOf("//"); | |
} | |
if ($i -gt -1) { | |
$k = $k.SubString(0, $i); |
View AsciiArcLength.cs
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
if (args[0] == "gen") | |
GenerateRandom(); | |
else if (args[0] == "len") | |
Console.WriteLine(Measure().ToString("0.00")); |
View testcase0solution.txt
Required Effort: 139 | |
Probability of Success: 0.503151054609375 | |
####################### | |
# = # | |
! = ! | |
# ! = # | |
#################= # | |
# # = # | |
# # = # | |
# # = # |
View OfficeEscapeSolver.cs
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace OfficeEscapeSolver | |
{ | |
public struct Vector | |
{ | |
public static Vector Zero = new Vector(0, 0); | |
View HeatMapSeries.cs
// -------------------------------------------------------------------------------------------------------------------- | |
// <copyright file="HeatMapSeries.cs" company="OxyPlot"> | |
// Copyright (c) 2014 OxyPlot contributors | |
// </copyright> | |
// <summary> | |
// Specifies how the heat map coordinates are defined. | |
// </summary> | |
// -------------------------------------------------------------------------------------------------------------------- | |
namespace OxyPlot.Series |
View BasicStdioExample.cs
using System; | |
namespace StdioComms | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
if (args.Length > 0 && args[0] == "client") | |
{ |
NewerOlder