Skip to content

Instantly share code, notes, and snippets.

Cameron MacFarland distantcam

Block or report user

Report or block distantcam

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
distantcam / drawarc.c
Created Apr 28, 2013
Pebble helper functions
View drawarc.c
Copyright 2013 Cameron MacFarland
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distantcam / CUI.cs
Last active Feb 14, 2017
CUI - A simple Console UI
View CUI.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using static System.Console;
using static System.ConsoleColor;
namespace CUI
public class ConsoleApplication<TScreen>
View PropertyChangedArgBenchmarks.cs
using System.ComponentModel;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Exporters;
using BenchmarkDotNet.Running;
public class PropertyChangedArgBenchmarks
distantcam / SimpleConfig.cs
Created Oct 12, 2017
Simple config class
View SimpleConfig.cs
public static class SimpleConfig
static string configFilePath;
public static void InitializeInLocalApplicationData(string name)
distantcam / Sample.csproj
Created Oct 19, 2017
Example new project
View Sample.csproj
<Project Sdk="Microsoft.NET.Sdk">
View CompositeParallelJobSystem.cs
using Unity.Entities;
using Unity.Jobs;
public abstract class CompositeParallelJobSystem<T1, T2> : JobComponentSystem
where T1 : struct, IJobParallelFor
where T2 : struct, IJobParallelFor
protected ComponentGroup group;
protected abstract ComponentGroup CreateGroup();
View AkavacheExtensions.cs
public static class AkavacheExtensions
public static IObservable<string> GetOrFetchWithETag(this IBlobCache cache, string url)
var result =
// Get from cache
// Cached values are true
.Select(x => Tuple.Create(x, true))
View xkcd.fx
sampler2D input : register(s0);
/// <summary>The second input texture.</summary>
/// <defaultValue>c:\examplefolder\examplefile.jpg</defaultValue>
sampler2D RandomTexture : register(s1);
/// <summary>The radius of the Poisson disk (in pixels).</summary>
/// <minValue>1</minValue>
/// <maxValue>10</maxValue>
/// <defaultValue>5</defaultValue>
distantcam / extensions.json
Created Mar 28, 2019
Presentation settings for vscode
View extensions.json
"recommendations": [
distantcam / JobHelper.cs
Last active Aug 26, 2019
Unity Job system with async
View JobHelper.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Unity.Jobs;
public static class JobHelper
You can’t perform that action at this time.