Skip to content

Instantly share code, notes, and snippets.

View Markyparky56's full-sized avatar
💭
Hello, World!

Mark A. Ropper Markyparky56

💭
Hello, World!
View GitHub Profile
@Markyparky56
Markyparky56 / tags-list.html
Created June 19, 2019 12:41
Jekyll Tag List
{% comment %} Get tags for each of the three collections: food, projects & journal {% endcomment %}
{% comment %} Then concatenate them into a single array {% endcomment %}
{% assign tags_food = (site.food | map: 'tags' | uniq) %}
{% assign tags_projects = (site.projects | map: 'tags' | uniq) %}
{% assign tags_journal = (site.journal | map: 'tags' | uniq) %}
{% assign tags = (tags_food | concat: tags_projects | concat: tags_journal | uniq) %}
{% comment %} Sort tag array alphabetically {% endcomment %}
{% assign sorted_tags = (tags | sort:0) %}
{% assign sorted_food_tags = (tags_food | sort:0) %}
// Check other page for Noise function
const float PI = 3.141592653589793238462643383279;
const float seed0 = 0.0;
// Rotations to hide some symmetry/bias, 4D rotations as the rotation must be applied to the
// points in 4D space to maintain seamlessness, rotations are arbitrary
// Matrices from here, only XZ and ZU are used here but any combination should work
const mat4 rot0 = mat4(
cos(0.77), 0, -cos(0.77), 0,
0, 1, 0, 0,
@Markyparky56
Markyparky56 / OpenSimplexNoise.hpp
Last active July 7, 2024 06:37 — forked from digitalshadow/OpenSimplexNoise.cs
OpenSimplex Noise Refactored for C++
#pragma once
/*******************************************************************************
OpenSimplex Noise in C++
Ported from https://gist.github.com/digitalshadow/134a3a02b67cecd72181
Originally from https://gist.github.com/KdotJPG/b1270127455a94ac5d19
Optimised by DigitalShadow
This version by Mark A. Ropper (Markyparky56)
*******************************************************************************/
#include <array>
#include <vector>
@Markyparky56
Markyparky56 / Reddit - Block NSFW.js
Created March 2, 2016 21:20
Tampermonkey Compatible Reddit NSFW Sub Redirector
// ==UserScript==
// @name Reddit - Block NSFW
// @description Redirects NSFW subreddits to another site.
// @version 1.0
// @include /^https?://.*\.reddit\.com/r/.*$/
// @license GPLv3
// @grant GM_xmlhttpRequest
// @namespace https://github.com/Markyparky56
// ==/UserScript==