Skip to content

Instantly share code, notes, and snippets.

Avatar

Carl Scarlett ZodmanPerth

  • Perth, Western Australia
View GitHub Profile
@ZodmanPerth
ZodmanPerth / Sample.js
Last active Aug 17, 2021
Hexo Icarus Mathjax GitHub Gist issue
View Sample.js
// 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 Aug 26, 2021
Custom Tag Script Plugins for Hexo.io with Icaraus Theme v5.4. Blog post at ...
@ZodmanPerth
ZodmanPerth / Binomials.cs
Last active Aug 28, 2021
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/
View Binomials.cs
namespace System
{
/// <summary>Mathematical functions for binomials</summary>
public static class Binomials
{
// / \
// | n | from n
// | |
// | k | choose k
// \ /
View iterator.linq
//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()
{