Skip to content

Instantly share code, notes, and snippets.

View metametaclass's full-sized avatar

metametaclass metametaclass

View GitHub Profile
// Path tree item.
class PathItem {
// array row coord
int x;
// array col coord
int y;
// path length
int len;
// further path
PathItem next;
>Please, imagine and describe a ritual of alchemic marriage between senior software engineer and imaginary astral hedgehog
In the mystical realm of Algoria, a senior software engineer named Alex discovers a unique bond with an imaginary astral hedgehog called Hedgina. The alchemic marriage ritual they are about to undergo is a symbolic union of their souls, blending the esoteric knowledge of software engineering with the ethereal wisdom of the astral hedgehog.
The ceremony takes place under a full moon, as its powerful energies are known to enhance astral connections. A sacred space is prepared by drawing a large circle on the ground, representing the infinite loop of life and code. At each cardinal direction, four symbols are placed: an open laptop to the east, a vial of liquid mercury to the south, a bundle of sage to the west, and a piece of moldavite crystal to the north.
Alex dons a ceremonial robe adorned with intricate patterns of ones and zeros, signifying the binary code that governs their profess
using System;
namespace test {
static class Test<T> {
static Test(){
System.Console.WriteLine("Cons: {0}", typeof(T).Name);
}
public static void Do(T t) {
System.Console.WriteLine("Do 1 {0}", t.GetType().Name);
#include <stdio.h>
#include <functional>
class Base;
// typedef void (*MainCallback)(void);
typedef std::function<void(void)> MainCallback;
class SubSub {
public:
SubSub() = default;
template <class Iterator>
typename std::iterator_traits<Iterator>::value_type stddev(Iterator first, Iterator last)
{
using U = typename std::iterator_traits<Iterator>::value_type;
U M, Mnew;
U S, Snew;
int count = 0;
for (auto it = first; it != last; ++it) {
auto v = * it;
#include <stdio.h>
int main(){
int x[1];
int i = 3;
asm("int $3"); // force debugger break
x[i] = 123; // corrupt stack
printf("%d\n",x[i]); // check if this really "works"
return 0;
}
package main
import (
"fmt"
"os"
"time"
"github.com/masterzen/winrm"
)
class DHCP:
def dhcp_test(self):
self.executor.exec_command("dhcp test")
class Client(DHCP):
def __init__(self, executor):
self.executor = executor
Debug on. --debug=NodeVisitor.cc,cgalutils.cc
do_export test1.dump
evaluate geometry
NodeVisitor: { // 8RootNode [1]
NodeVisitor: module plate { // 9GroupNode [2]
NodeVisitor: color { // 9ColorNode [3]
NodeVisitor: translate { // 13TransformNode [4]
NodeVisitor: cube // 13PrimitiveNode [5]
NodeVisitor: } // translate 13TransformNode [4]
NodeVisitor: } // color 9ColorNode [3]
GeometryItem module plate group("module plate")
PolySet 6
GeometryItem module plate group("module plate")
PolySet 6
GeometryItem module plate group("module plate")
PolySet 6
GeometryItem module arm group("module arm")
PolySet 6
GeometryItem module arm group("module arm")
PolySet 6