Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ZodmanPerth's full-sized avatar

Carl Scarlett ZodmanPerth

View GitHub Profile
@ZodmanPerth
ZodmanPerth / Readme.md
Last active April 17, 2024 06:43
Godot 4 Pixel Art Settings

Settings for pixel art in Godot 4

  1. Turn on Advanced project settings
  2. Navigate to Rendering | Textures
  3. Turn on Lossless Compression | Force PNG
  4. Set Canvas Textures | Default Texture Filter to Nearest
@ZodmanPerth
ZodmanPerth / Sample.js
Last active August 17, 2021 22:42
Hexo Icarus Mathjax GitHub Gist issue
// This is a demonstration for Hexo Theme Icarus showing how Mathjax is incorrectly formatting the content
// of an embedded GitHub Gist file.
// See https://github.com/ppoffice/hexo-theme-icarus/issues/915
//
// The issue has a resolution: surround the Gist script tag with a div containing ignore classes for all
// MathJax preprocessors:
// <div class="tex2jax_ignore asciimath2jax_ignore">
// <script src="https://gist.github.com/ZodmanPerth/ce90e1ac74276f5e30f0905c71a91c5d.js?file=Sample.js"></script>
// </div>
@ZodmanPerth
ZodmanPerth / Custom Hexo Tag Scripts
Last active August 26, 2021 22:29
Custom Tag Script Plugins for Hexo.io with Icaraus Theme v5.4. Blog post at ...
naming file
@ZodmanPerth
ZodmanPerth / Binomials.cs
Last active August 28, 2021 09:56
k-combination Algorithms of Rank and Unrank for Computer Programmers. Blog post at http://www.redperegrine.net/2021/04/10/software-algorithms-for-k-combinations/
namespace System
{
/// <summary>Mathematical functions for binomials</summary>
public static class Binomials
{
// / \
// | n | from n
// | |
// | k | choose k
// \ /
@ZodmanPerth
ZodmanPerth / Google Forms Submission Service
Last active February 22, 2024 01:19
Google Forms Data Submission in C#
naming file
naming file
naming file
Naming file
@ZodmanPerth
ZodmanPerth / iterator.linq
Last active December 30, 2018 08:24
PerformanceDotNet in LINQPad with report amalgamation. Blog post at http://www.redperegrine.net/2017/12/23/measuring-csharp-perf-with-benchmarkdotnet/
//This LINQPad file is discussed in my blog post:
// http://www.redperegrine.net/2017/12/10/measuring-csharp-perf-with-benchmarkdotnet/
[MemoryDiagnoser]
[RyuJitX64Job, LegacyJitX86Job]
public class IntegerWorker
{
[Benchmark]
public void NormalEnumerator()
{