Instantly share code, notes, and snippets.

View pinter-16-A-4-P2-P3
Z3xZ3 : { (0, 0) (0, 1) (0, 2) (1, 0) (1, 1) (1, 2) (2, 0) (2, 1) (2, 2) }
Z3xZ3 operation table:
|(0, 0) (0, 1) (0, 2) (1, 0) (1, 1) (1, 2) (2, 0) (2, 1) (2, 2)
----------------------------------------------------------------------
(0, 0)|(0, 0) (0, 1) (0, 2) (1, 0) (1, 1) (1, 2) (2, 0) (2, 1) (2, 2)
(0, 1)|(0, 1) (0, 2) (0, 0) (1, 1) (1, 2) (1, 0) (2, 1) (2, 2) (2, 0)
(0, 2)|(0, 2) (0, 0) (0, 1) (1, 2) (1, 0) (1, 1) (2, 2) (2, 0) (2, 1)
View ide-inline-output.md

Here's what my IDE looks like when I'm editing a C# program that solves an exercise from an abstract algebra book:

Here's the console output that results from running the program:

What I'd really like is for the output to be displayed directly inline in the IDE:

View pinter-15-A-5.md
View hacker-news-org-mode.md

The PowerShell script shown below can be used to archive a Hacker News post as an Emacs Org mode file.

Example invocation:

The post-to-org function is passed the story ID.

Resulting org file:

View FunctionIntInt.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AbstractAlgebraFunctionIntInt
{
public class FunctionSetComparer : IEqualityComparer<IEnumerable<FunctionIntInt>>
View D5.md

Symmetries of a pentagon

Represent each symmetry as a permutation of vertices:

var R0 = new FunctionIntInt((1, 1), (2, 2), (3, 3), (4, 4), (5, 5));
var R1 = new FunctionIntInt((1, 2), (2, 3), (3, 4), (4, 5), (5, 1));
View multiplying-permutations-objects.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using static System.Console;
namespace pinter_8.A._1_multiplying_permutations
{
View pinter-8.A.2 permutation to disjoint cycles.md

8.A.2 - A Book of Abstract Algebra by Charles C. Pinter

using System;
using System.Collections.Generic;
using System.Linq;

using static System.Console;
View pinter-8.A.1 multiplying permutations.md

8.A.1 - A Book of Abstract Algebra by Charles C. Pinter

using System;
using System.Collections.Generic;
using System.Linq;

using static System.Console;
View pinter-5.F.1.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace pinter_5.F._1
{
public static class Extensions
{