Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Diagnostics;
using System.Linq;
namespace LinqPerformance
{
class Program
{
static void Main(string[] args)
{
using System;
namespace FortyOneShades
{
class Program
{
static int[] values = new int[]{
0x276AD9,
0x3E6FD9,
0x3A6FDE,
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
namespace SaboteurExtractor
{
class Program
{
static void Main(string[] args)
using System;
using System.Drawing;
using System.IO;
using System.Reflection;
namespace MipCreator
{
class Program
{
static void Main(string[] args)
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Web.Script.Serialization;
namespace Json
{
public enum JsonObjectType
using System;
using System.IO;
using System.Text;
namespace FtlDat
{
class Program
{
static void Main(string[] args)
{
static class ByteArrayExtensions
{
public static bool Contains(this byte[] src, byte query)
{
return src.IndexOf(query) >= 0;
}
public static bool Contains(this byte[] src, byte[] query)
{
return src.IndexOf(query) >= 0;
@lunasorcery
lunasorcery / dragon_curve.c
Created February 28, 2013 02:28
The Dragon Curve created using GBDK's 2D plotter APIs. I know it's not entirely optimal code.
// Dragon Curve for Gameboy, using GBDK
// By Will Kirkby 2013
//
// Ported from Eelke Schipper's http://www.khanacademy.org/cs/dragon-curve/1414142328
//
// Use the up and down buttons to
// increase or decrease the number of folds.
//
// (1 << n) is used in place of pow(2, n) for speed purposes.
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Threading;
namespace LetterBloxBot {
class Program {
// WinAPI:
[DllImport("user32.dll")]
static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo);