This file contains hidden or 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.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Diagnostics; | |
| namespace TrafficJamSolver | |
| { | |
| class Car |
This file contains hidden or 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.Collections.Generic; | |
| using System.Diagnostics; | |
| namespace ListTest | |
| { | |
| static class Program | |
| { | |
| public static void AppendMany<T>( this LinkedList<T> collection, params T[] elements ) | |
| { |
This file contains hidden or 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 class FramedStream : Stream | |
| { | |
| private struct Frame | |
| { | |
| public readonly long Offset; | |
| public readonly long Size; | |
| public Frame( long offset, long size ) | |
| { | |
| Offset = offset; |
This file contains hidden or 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 abstract class Component | |
| { | |
| public static T Create<T>( Entity ent ) | |
| where T : Component | |
| { | |
| Type t = typeof( T ); | |
| ConstructorInfo c = t.GetConstructor( new Type[] { typeof( Entity ) } ); | |
| if ( c == null ) | |
| throw new MissingMethodException( "Type " + t.FullName + " is missing a valid constructor." ); |
This file contains hidden or 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 OpenTK; | |
| using Zombles.Geometry; | |
| using Zombles.Entities; | |
| namespace Zombles.Scripts | |
| { | |
| public class CorePlugin : Plugin | |
| { | |
| private Entity myEnt; |
This file contains hidden or 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
| private bool InRange( District district ) | |
| { | |
| float xdiff = 0.0f, ydiff = 0.0f; | |
| if ( Center.X < district.Bounds.Left ) | |
| xdiff = Math.Min( district.Bounds.Left - Center.X, Center.X - district.Bounds.Right + City.Width ); | |
| else if ( Center.X > district.Bounds.Right ) | |
| xdiff = Math.Min( Center.X - district.Bounds.Right, district.Bounds.Left - Center.X + City.Width ); | |
| if ( Center.Y < district.Bounds.Top ) | |
| ydiff = Math.Min( district.Bounds.Top - Center.Y, Center.Y - district.Bounds.Bottom + City.Height ); | |
| else if ( Center.Y > district.Bounds.Bottom ) |
This file contains hidden or 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
| # new game staring with properties: | |
| turns 500 | |
| seed 148810562 | |
| fow true | |
| timeout 1000 | |
| vrange 5 | |
| # loading map | |
| teams 2 | |
| width 16 | |
| height 16 |
This file contains hidden or 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
| import java.security.*; | |
| public class HashTest | |
| { | |
| public static void main(String[] args) | |
| throws Exception | |
| { | |
| System.out.println(hash("testing")); | |
| } |
This file contains hidden or 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.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| namespace FoobarControlServer | |
| { | |
| class Program |
This file contains hidden or 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.IO; | |
| using System.Net; | |
| using System.Text; | |
| using System.Xml.Linq; | |
| public abstract class Fetchable | |
| { | |
| protected static String BuildURL(String baseURL, params Object[] pairs) | |
| { |
OlderNewer