This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using WarpEngine; | |
namespace Warpcore | |
{ | |
public sealed class Client : Game | |
{ | |
public Client() | |
{ | |
Loops.Add(new Loop(Update, TimeSpan.FromSeconds(1.0/100.0))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using WarpEngine; | |
namespace Warpcore | |
{ | |
public sealed class Client : Game | |
{ | |
private Loop _updateLoop; | |
public Client() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static ParsedHtml Parse(string html) | |
{ | |
if (html == null) | |
{ | |
throw new ArgumentNullException("html"); | |
} | |
var pipeline = PipelineBuilder | |
.Start(new LexerPipe()) | |
.Chain(new TokenizerPipe()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "core.testBlock", | |
"attachSides": [true, true, true, true, true, true] | |
} | |
{ | |
"name": "core.testBlock", | |
"attachSide": "Forwards" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test = <expression> | |
? <if true> | |
: <if false>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Non-fluent | |
var loop = new Loop(() => Update(data), 60); | |
// Fluent | |
var loop = Loop | |
.For(() => Update(data)) | |
.PerSecond(60); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Subterran; | |
namespace TropicalIsland | |
{ | |
internal static class TropicalIsland | |
{ | |
public static void Run() | |
{ | |
var data = new GameData(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
-ms-border-radius: $radius; | |
border-radius: $radius; | |
} | |
.box { @include border-radius(10px); } |
OlderNewer