Skip to content

Instantly share code, notes, and snippets.

using System.Drawing;
namespace OpenRa.Game.Graphics
{
class Minimap
{
Sheet sheet;
SpriteRenderer spriteRenderer;
Sprite sprite;
using System.Collections.Generic;
using System.Drawing;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
namespace OpenRa.Game.Traits
{
enum DamageState { Normal, Half, Dead };
// depends on the order of pips in WorldRenderer.cs!
namespace ExceptIsInteresting
{
class Program
{
static void Main(string[] args)
{
var xs = new[] { "a", "a", "b" };
var ys = new[] { "b" };
var result = xs.Except(ys);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace MultiRegex
{
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace event_combinators
{
class Program
{
static void Main(string[] args)
We couldn’t find that file to show.
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;
namespace codeshape
{
static class Program
public static class ControllerInterface
{
public static void DoHostCall(GeckoWebBrowser w, object controller)
{
try
{
var e = w.Document.GetElementsByTagName("callinfo").First();
var methodName = e.GetAttribute("funcname");
var method = controller.GetType().GetMethod(methodName);
// c# / xulrunner host call interface [for geckofx-1.9, xulrunner-1.9.1.3]
// allows arb. calls to window.host.SomeMethod() to be marshaled to the host.
var last_host_call = 0;
window.host = { __noSuchMethod__: function(id, xs)
{
/* host bridge for gecko-1.9.1 / geckofx-1.9.0 */
/* set up the args object */
$("callinfo").remove();
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Farmworks.Utils;
using Farmworks.Gateway.Client;
namespace farmnet_soil
{
class DualMaster : Device