Skip to content

Instantly share code, notes, and snippets.

View LaylBongers's full-sized avatar
🕹️

Layl LaylBongers

🕹️
View GitHub Profile
using System;
using WarpEngine;
namespace Warpcore
{
public sealed class Client : Game
{
public Client()
{
Loops.Add(new Loop(Update, TimeSpan.FromSeconds(1.0/100.0)));
using System;
using WarpEngine;
namespace Warpcore
{
public sealed class Client : Game
{
private Loop _updateLoop;
public Client()
using System;
using System.Diagnostics;
namespace RandomnessTest
{
internal static class Program
{
private const double MaxRatio = 1.0 / uint.MaxValue;
private const int Seed = 583945;
private const int RunTimes = 100000000; // 100 million
public static ParsedHtml Parse(string html)
{
if (html == null)
{
throw new ArgumentNullException("html");
}
var pipeline = PipelineBuilder
.Start(new LexerPipe())
.Chain(new TokenizerPipe())
public IEnumerable<TOutData> Process(IEnumerable<TInData> inData)
{
// Verify function call requirements
if (inData == null)
{
throw new ArgumentNullException("inData");
}
// Set up the metadata class
var data = new TMetaData();
{
"name": "core.testBlock",
"attachSides": [true, true, true, true, true, true]
}
{
"name": "core.testBlock",
"attachSide": "Forwards"
}
var test = <expression>
? <if true>
: <if false>;
// Non-fluent
var loop = new Loop(() => Update(data), 60);
// Fluent
var loop = Loop
.For(() => Update(data))
.PerSecond(60);
using System;
using Subterran;
namespace TropicalIsland
{
internal static class TropicalIsland
{
public static void Run()
{
var data = new GameData();
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
.box { @include border-radius(10px); }