Skip to content

Instantly share code, notes, and snippets.

View Cryptoc1's full-sized avatar
:shipit:

Samuel Steele Cryptoc1

:shipit:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am cryptoc1 on github.
  • I am cryptoc1 (https://keybase.io/cryptoc1) on keybase.
  • I have a public key whose fingerprint is 3BBE F282 022E 5683 C275 DCDC C1E1 4361 DC7E 4237

To claim this, I am signing this object:

@Cryptoc1
Cryptoc1 / PixelSort.csx
Created December 31, 2022 18:27
C# implementation of @kimasendorf's ASDFPixelSort algorithm using Magick.NET
#!/usr/bin/env dotnet-script
#r "nuget: Magick.NET-Q8-AnyCPU, 12.2.2"
using ImageMagick;
using( var image = new MagickImage( Path.GetFullPath( @".\source.jpg" ) ) )
{
Console.WriteLine( "loaded, starting sort." );
PixelSorter.Sort( image, new PixelSortMode.White() );
@Cryptoc1
Cryptoc1 / Operation.cs
Last active January 12, 2024 21:17
Operations (CQRS-like service pattern)
namespace Cryptoc1.Extensions.Operations.Abstractions;
public interface IOperation
{
}
public interface IOperation<TResult>
{
}
@Cryptoc1
Cryptoc1 / Sample.razor
Last active July 13, 2024 15:54
Record Based `Stateful` Blazor Component
@inherits Stateful<SampleState>
@if( !State.IsLoaded )
{
<span>Loading...</span>
}
else
{
<span>Loaded!</span>
}