Skip to content

Instantly share code, notes, and snippets.

View antoinne85's full-sized avatar

Tony Compton antoinne85

  • PureCars
  • Atlanta, GA
View GitHub Profile
@antoinne85
antoinne85 / needle-in-haystack.js
Created May 3, 2021 13:21
JavaScript Needle-In-Haystack Search
//Sourced from: https://stackoverflow.com/questions/17326939/is-there-a-way-to-search-a-console-logged-object-for-particular-values-in-chrome
//Answered by: https://stackoverflow.com/users/34441/ellisbben
var searchHaystack = function(haystack, needle, path, equalityFn, visited) {
if(typeof haystack != "object") {
console.warn("non-object haystack at " + path.join("."));
}
if(visited.has(haystack))
@antoinne85
antoinne85 / Miscellaneous.md
Last active April 10, 2019 18:31
Useful Powershell Tidbits

Miscellaneous

Reset the Console Colors
[Console]::ResetColor()
@antoinne85
antoinne85 / ModuleResolver.cs
Created January 22, 2018 19:12
Simple Autofac Module Dependency Setup
public class ModuleResolver
{
public IList<MyModule> Resolve(List<Type> topLevelModules)
{
var createdModules = new Dictionary<Type, MyModule>();
var modulesToExamine = new Stack<Type>(topLevelModules);
while (modulesToExamine.Count > 0)
{
var moduleToExamine = modulesToExamine.Pop();
@antoinne85
antoinne85 / build-output.log
Created January 13, 2018 05:03
SignalR Build Output
This file has been truncated, but you can view the full file.
Using KoreBuild 2.1.0-preview1-15661
WARNING: dotnet found on the system PATH is 'C:\Program Files\dotnet\dotnet.exe' but KoreBuild will use 'C:\Users\tonyc\.dotnet\x64\dotnet.exe'.
WARNING: Adding 'C:\Users\tonyc\.dotnet\x64' to system PATH permanently may be required for applications like Visual Studio or VS Code to work correctly.
Adding C:\Users\tonyc\.dotnet\x64 to PATH
.NET Core runtime 2.0.3 is already installed. Skipping installation.
.NET Core SDK 2.2.0-preview1-007866 is already installed. Skipping installation.
>>> dotnet.exe msbuild @C:\GitHubProjects\SignalR\artifacts\logs\msbuild.rsp
Using NodeJS 9.3.0 from C:\Program Files\nodejs\node.exe
Restore completed in 30.8 ms for C:\GitHubProjects\SignalR\client-ts\Microsoft.AspNetCore.SignalR.Client.TS\Microsoft.AspNetCore.SignalR.Client.TS.csproj.
Restore completed in 35.87 ms for C:\GitHubProjects\SignalR\benchmarks\Microsoft.AspNetCore.SignalR.Microbenchmarks\Microsoft.AspNetCore.SignalR.Microbenchmarks.csproj.
@antoinne85
antoinne85 / findfiles.sh
Last active June 30, 2017 18:00
*nix, Recursively find files with a given extension
find $directory -type f -name "*.ext"