Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Drawing;
namespace dxtest
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;
namespace remapsmoke
{
// damage per second evaluation for OpenRA mods
using System;
using System.IO;
using System.Linq;
using OpenRA;
using OpenRA.FileFormats;
using OpenRA.GameRules;
using OpenRA.Traits;
static class VariableHeightItems
{
[DllImport("user32")]
static extern IntPtr SendMessage(IntPtr hwnd, uint msg, IntPtr wp, IntPtr lp);
[StructLayout(LayoutKind.Sequential)]
struct TVITEMEX
{
public Mask mask;
public IntPtr item;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Globalization;
namespace formatter
{
// supported codes:
// \fb; \fr; -- font bold/regular.
// C# bindings for the Clang C API
// requires clang.dll from llvm to work.
using System;
using System.Runtime.InteropServices;
namespace ClangApi
{
using Index = IntPtr;
using File = IntPtr;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
namespace fooTest
{
class CompletionProvider
// Tiberium green -> blue remapper.
using System.Drawing;
using System.IO;
using System.Drawing.Imaging;
using System;
using System.Collections.Generic;
namespace remaptib
{
using System;
namespace blah
{
[Flags]
enum Foos { Foo = 1, Bar = 2, Baz = 4 }
class Program
{
static void Main(string[] args)
@chrisforbes
chrisforbes / gist:764377
Created January 4, 2011 04:11
DownloadRaw -- it sucks less than WebClient.DownloadString
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace wctest
{
static class Program