Skip to content

Instantly share code, notes, and snippets.

@jnguyen1098
jnguyen1098 / bogograms.c
Created March 30, 2021 04:12
Find out if two words are anagrams, bogo style
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
int main(void)
{
char first_word[BUFSIZ] = "";
char second_word[BUFSIZ] = "";
@dwilliamson
dwilliamson / MarchingCubes.js
Last active October 10, 2024 18:14
Marching Cubes Lookup Tables
//
// Lookup Tables for Marching Cubes
//
// These tables differ from the original paper (Marching Cubes: A High Resolution 3D Surface Construction Algorithm)
//
// The co-ordinate system has the more convenient properties:
//
// i = cube index [0, 7]
// x = (i & 1) >> 0
// y = (i & 2) >> 1