Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
Shader "Hidden/ComputeOcclusion" | |
{ | |
Properties | |
{ | |
_MainTex ("", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Pass | |
{ |
// A C++11 constexpr implementation of xxhash32 | |
// Jonathan Adamczewski / https://twitter.com/twoscomplement | |
// A reimplementation of code from https://github.com/Cyan4973/xxHash | |
// Foundation functions / commonly used patterns | |
// Read four chars and construct uint32_t (little endian) | |
constexpr uint32_t xxh_read32(const char* input) | |
{ |
- A short compilations of hybrid files I've used/modifies whats out there for my use.
What do I mean by hybrid files? A file that can be parsed by two or more scripting lanauges and run (without or minimal error messages)
I copied this from here There are many different versions out there, of varying degrees of difficulty out there. However this is my favorite
# ------------------------------------------------------------- | |
# | |
# Using Linux System calls for 64-bit | |
# to run: | |
# gcc -c hello.s && ld hello.o && ./a.out | |
# o | |
# gcc -nostdlib hello.s && ./a.out | |
# | |
# -------------------------------------------------------------- |
# author: tmwhere.com | |
# --- third party dependencies | |
PIXI = require('pixi.dev') | |
_ = require('lodash') | |
noise = require('perlin').noise | |
Quadtree = require('quadtree').Quadtree | |
seedrandom = require('seedrandom') | |
# --- |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
// LZ4 streaming API example 2 (ring buffer) | |
#define _CRT_SECURE_NO_WARNINGS // for MSVC | |
#include "lz4.h" | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007