sdfgsdfgsfdgsdgf
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.IO; | |
| using System.Text; | |
| // Only supports string, float, int, and bool properties. | |
| // Usage: | |
| // var saveFileAccessor = new UnrealEngineSaveFileAccessor("path to .sav file"); | |
| // var propName = "SomeFloatVariable"; | |
| // var propValue = saveFileAccessor.GetProperty<float>(propName); |
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
| https://www.youtube.com/watch?v=Z6ih1aKeETk Tycho - Dive (Album) | |
| https://www.youtube.com/watch?v=Uvok1mji3k0 COPYCATT - Affection | |
| https://www.youtube.com/watch?v=YhcTtFGAz6s Jellis & Subsets - Reborn | |
| https://www.youtube.com/watch?v=RzST9VmWcw0 The Aurora Principle - Sen | |
| https://www.youtube.com/watch?v=l-HHomK1mg8 Brombaer & Poiken - Firefly | |
| https://www.youtube.com/watch?v=jPtmoa9XHgg Brombaer - Silk Road | |
| https://www.youtube.com/watch?v=9WFae1dnIGQ Michael FK - Pulsar | |
| https://www.youtube.com/watch?v=KCxQ8I54a5Y Kozoro - Autumn | |
| https://www.youtube.com/watch?v=QXIB4JGPtmo Four Tet- Unicorn | |
| https://www.youtube.com/watch?v=fAnftbRJE3Q Braak - Sure |
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
| http://stackoverflow.com/q/9845002 | |
| http://stackoverflow.com/q/26027582 | |
| http://stackoverflow.com/q/23024960 | |
| http://stackoverflow.com/q/15223400 | |
| http://stackoverflow.com/q/28342612 | |
| http://stackoverflow.com/q/28069000 | |
| http://stackoverflow.com/q/14109687 | |
| http://stackoverflow.com/q/2167481 | |
| http://stackoverflow.com/q/34917422 | |
| http://stackoverflow.com/q/32219863 |
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
| var leave = false; | |
| while (someCondition && !leave) | |
| { | |
| System.Threading.Thread.Sleep(500); | |
| Application.Current.Dispatcher.Invoke(new Action(() => | |
| { | |
| if (someOtherCondition) | |
| { |
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
| namespace C_Sharp_Benchmarker | |
| { | |
| class Program | |
| { | |
| private static int testIterations = 10000000; | |
| public static void Main(string[] args) | |
| { | |
| var t1 = Test1(); | |
| var t2 = Test2(); |
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.Text.RegularExpressions; | |
| using ChatExchangeDotNet; | |
| namespace Hatman.Commands | |
| { | |
| class CommandName : ICommand |
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
| if (latestReview != null && latestReview.AuditPassed == false && (DateTime.UtcNow - latestReviewTimestamp).TotalMinutes > 1) | |
| { | |
| // We can be pretty sure they've been temporarily banned. | |
| endSession(); | |
| return; | |
| } | |
| if (sessionReviews.Count + TodaysCVReviews.Count >= (reviewsAvailable > 1000 ? 40 : 20)) | |
| { | |
| // They've ran out of reviews. |
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 unsafe static BigInteger Sqrt(BigInteger num, BigInteger n) | |
| { | |
| var squaresUnder100 = new Dictionary<int, int> { { 1, 1 }, { 2, 4 }, { 3, 9 }, { 4, 16 }, { 5, 25 }, { 6, 36 }, { 7, 49 }, { 8, 64 }, { 9, 81 } }; | |
| var pairCount = 0; | |
| var pairs = GetSqrtPairs(num, out pairCount); | |
| // Find the largest integer whose square is smaller than or equal to the current pair. | |
| var pairSq = (BigInteger)1; | |
| foreach (var sq in squaresUnder100) | |
| { |
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 ReportLog() | |
| { | |
| byte[] uncompBytes; | |
| using (var file = File.OpenRead(path)) | |
| using (var compStrm = new GZipStream(file, CompressionMode.Decompress)) | |
| { | |
| uncompBytes = new byte[file.Length]; | |
| var strm = new MemoryStream(); |
NewerOlder