Skip to content

Instantly share code, notes, and snippets.

👋
I'll get round to it, eventually.

Sam ArcticEcho

👋
I'll get round to it, eventually.
Block or report user

Report or block ArcticEcho

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dem trackz.txt
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
View Active Reqs
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
View example.cs
var leave = false;
while (someCondition && !leave)
{
System.Threading.Thread.Sleep(500);
Application.Current.Dispatcher.Invoke(new Action(() =>
{
if (someOtherCondition)
{
View benchmark.cs
namespace C_Sharp_Benchmarker
{
class Program
{
private static int testIterations = 10000000;
public static void Main(string[] args)
{
var t1 = Test1();
var t2 = Test2();
View gist:2e566850e6424d7080d8
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using ChatExchangeDotNet;
namespace Hatman.Commands
{
class CommandName : ICommand
View gist:321d486a4f8d772d8bd4
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.
View gist:0fe24a7d37403ed43301
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)
{
View gist:923af766f79a5b0ddd88
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();
View gist:72ecdd2ce0fd704ac2f0
private static void TestMethod1()
{
var str = new [] { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p' };
// Remove
var t = new char[20];
for (var i = 0; i < 20; i++)
{
You can’t perform that action at this time.