This file contains 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.IO; | |
using System.Linq; | |
using System.Text; | |
namespace csv | |
{ | |
static class CSV | |
{ |
This file contains 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
static BigInteger ProdTree(int l, int r) | |
{ | |
if (l > r) | |
return 1; | |
if (l == r) | |
return l; | |
if (r - l == 1) | |
return (BigInteger)l * r; | |
int m = (l + r) / 2; | |
return ProdTree(l, m) * ProdTree(m + 1, r); |
This file contains 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.Threading.Tasks; | |
using VRageMath; | |
namespace Script | |
{ | |
#region ingame script start |
This file contains 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
static class StrUtils | |
{ | |
static string cRef = | |
"\n\n\n\n\n" + | |
"\n'|¦ˉ‘’‚" + | |
"\nј" + | |
"\n !I`ijl ¡¨¯´¸ÌÍÎÏìíîïĨĩĪīĮįİıĵĺļľłˆˇ˘˙˚˛˜˝ІЇії‹›∙" + | |
"\n(),.1:;[]ft{}·ţťŧț" + | |
"\n\"-rªºŀŕŗř" + | |
"\n*²³¹" + |
This file contains 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 Harmony; | |
using Havok; | |
using Sandbox.Engine.Physics; | |
using Sandbox.Game.Entities.Cube; | |
using System; | |
using System.Reflection; | |
using VRage.Plugins; | |
namespace SpeedLimitFix | |
{ |
This file contains 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
List<IMyProgrammableBlock> pbs = new List<IMyProgrammableBlock>(); | |
IMyTextPanel status = null; | |
public Program() { | |
} | |
public void Main(string argument) { | |
this.GridTerminalSystem.GetBlocksOfType<IMyProgrammableBlock>(pbs); |
This file contains 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.Drawing; | |
using System.Drawing.Imaging; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains 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.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace Publish | |
{ |
This file contains 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
static bool RecacheColumnWidths_prefix(PawnTable __instance) | |
{ | |
ClSimplexSolver solver = new ClSimplexSolver(); | |
solver.AutoSolve = false; | |
var cachedColumnWidths = (List<float>)typeof(PawnTable) | |
.GetField("cachedColumnWidths", BindingFlags.NonPublic | BindingFlags.Instance) | |
.GetValue(__instance); |
OlderNewer