Skip to content

Instantly share code, notes, and snippets.

@Mailaender
Mailaender / Main.cs
Created March 25, 2013 09:11
Try to calculate machine epsilon
using System;
namespace MachineEpsilon
{
class MainClass
{
public static void Main (string[] args)
{
double machEps = 1.0d;
@Mailaender
Mailaender / map.yaml
Created March 31, 2013 19:12
How to use spawn MP units
Rules:
World:
SpawnMPUnits@allies:
InitialUnit: mcv,jeep
Faction: allies
SpawnMPUnits@soviets:
InitialUnit: mcv,ftrk
Faction: soviets
@Mailaender
Mailaender / ReplayBrowserLogic.cs
Created April 22, 2013 22:21
Only show compatible replays when browsing them.
#region Copyright & License Information
/*
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COPYING.
*/
#endregion
This file has been truncated, but you can view the full file.
Player: Zypres (Windows Microsoft Windows NT 6.1.7601 Service Pack 1 .NET CLR 2.0.50727.5472)
Game ID: 521ff9ea-98ec-46d1-b49e-a52d1a574a01 (Mod: Red Alert at Version playtest-20131019-5)
Sync for net frame 11131 -------------
SharedRandom: 1320639775 (#730644)
Synced Traits:
1 player Neutral PlayerResources (71000)
Cash: 71000
Ore: 0
OreCapacity: 0
1 player Neutral FrozenActorLayer (24816)
Player: Ripley` (Windows Microsoft Windows NT 6.1.7600.0 .NET CLR 2.0.50727.4927)
Game ID: 8fd9ccfe-79a9-4d59-8e18-3cc828679e88 (Mod: Dune 2000 at Version playtest-20131019-5)
Sync for net frame 2594 -------------
SharedRandom: 448180978 (#45956)
Synced Traits:
1 player Neutral PlayerResources (5000)
Cash: 5000
Ore: 0
OreCapacity: 0
2 player Creeps PlayerResources (5000)
@Mailaender
Mailaender / OpenRA.Game.txt
Last active December 26, 2015 00:58
Disassembly of Josephs CLI vs OpenRA official
This file has been truncated, but you can view the full file.
.assembly extern mscorlib
{
.ver 2:0:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly extern System.Core
{
.ver 3:5:0:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
@Mailaender
Mailaender / defaults.yaml
Last active December 27, 2015 06:09
Test
^Vehicle:
AppearsOnRadar:
Mobile:
Crushes: atmine, crate, apmine
TerrainSpeeds:
Clear: 80
Rough: 40
Road: 100
Ore: 70
Gems: 70
@Mailaender
Mailaender / OpenRA.mdpolicy
Last active December 27, 2015 06:29
MonoDevelop code formatting guidelines for OpenRA
<?xml version="1.0" encoding="utf-8"?>
<PolicySet name="OpenRA">
<StandardHeader>
<Text>#region Copyright &amp; License Information
/*
* Copyright 2007-${Year} The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COPYING.
unit uPhysFSLayer;
interface
uses SDLh, LuaPas;
const PhysfsLibName = {$IFDEF PHYSFS_INTERNAL}'libhw_physfs'{$ELSE}'libphysfs'{$ENDIF};
const PhyslayerLibName = 'libphyslayer';
{$IFNDEF WIN32}
{$linklib physfs}
@Mailaender
Mailaender / opt-zip.diff
Created February 3, 2014 15:26
diff -U 3 -dpr -- /opt/voclipse /home/matthias/Downloads/com.vogella.vde.product-linux.gtk.x86
Only in /home/matthias/Downloads/com.vogella.vde.product-linux.gtk.x86: .eclipseproduct
Only in /opt/voclipse: about.html
Only in /opt/voclipse: about_files
diff -U 3 -d -p -r -- /opt/voclipse/artifacts.xml /home/matthias/Downloads/com.vogella.vde.product-linux.gtk.x86/artifacts.xml
--- /opt/voclipse/artifacts.xml 2014-02-03 15:46:38.965915003 +0100
+++ /home/matthias/Downloads/com.vogella.vde.product-linux.gtk.x86/artifacts.xml 2014-01-31 18:09:12.000000000 +0100
@@ -1,16 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<?artifactRepository version='1.1.0'?>
-<repository name='Bundle pool' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1.0.0'>