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.Threading; | |
namespace ConsoleApp | |
{ | |
internal static class Program | |
{ | |
internal static readonly object lockObject = new object(); | |
internal static volatile object obj; |
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.Buffers; | |
using System.IO; | |
using System.IO.MemoryMappedFiles; | |
namespace AirBreather.IO | |
{ | |
public static class MemoryMappedFileEx | |
{ | |
public static unsafe OwnedMemory<byte> CreateFromFile(string filePath, FileMode mode, string mapName, long offset, long totalCapacity, MemoryMappedFileAccess access) |
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.Collections.Concurrent; | |
using System.IO.MemoryMappedFiles; | |
using BlockingCollection<string> coll = new(); | |
var threads = new Thread[100]; | |
foreach (ref var thread in threads.AsSpan()) | |
{ | |
thread = new Thread(RunThread) { IsBackground = true }; | |
thread.Start(coll); |
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; | |
namespace ConsoleApplication1 | |
{ | |
internal static class Program | |
{ | |
private static void Main() | |
{ |
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 CommandLine; | |
using CommandLine.Text; | |
namespace StepperUpper | |
{ | |
internal sealed class Options | |
{ | |
// input file | |
[Option('p', "packDefinitionFile", Required = true, HelpText = "The .xml file that defines a pack.")] | |
public string PackDefinitionFilePath { get; set; } |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Modpack Name="STEP" Variant="Core" Version="2.2.9.2"> | |
<Files> | |
<!-- TODO: Cleaned MD5s are outdated. Check this against a re-run of the cleaning process: | |
http://afkmods.iguanadons.net/index.php?/topic/4110-manual-cleaning-skyrim-master-files | |
and update accordingly if it's correct. --> | |
<Group Name="1.C. Install Utilities"> | |
<File Name="Mod Organizer 1.3.1.1" | |
CanonicalFileName="Mod Organizer v1_3_11-1334-1-3-11.7z" | |
MD5Checksum="215ccbbca78af9cd3f833dd2efb81759" |
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
// comment this out to see how comparatively expensive it is if all you have are properties. | |
#define FIELDS | |
using System; | |
using System.Diagnostics; | |
namespace ConsoleApplication1 | |
{ | |
struct Point | |
{ |
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
//****************************** | |
// Written by Peter Golde | |
// Copyright (c) 2004-2005, Wintellect | |
// | |
// Use and restribution of this code is subject to the license agreement | |
// contained in the file "License.txt" accompanying this file. | |
//****************************** | |
#region Using directives |
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 AirBreather.Common.Utilities; | |
using GeoAPI.Geometries; | |
namespace TestingGround | |
{ | |
internal struct CoordVal : IEquatable<CoordVal> | |
{ | |
internal double X; | |
internal double Y; |
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.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using GeoAPI.Geometries; | |
using NetTopologySuite; | |
using NetTopologySuite.IO; | |
using NetTopologySuite.Operation.Union; | |
namespace TestingGround |