Skip to content

Instantly share code, notes, and snippets.

View jredh's full-sized avatar
Go Braves!

jredh

Go Braves!
View GitHub Profile
@jredh
jredh / GLSL-Noise.md
Created November 4, 2020 16:17 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@jredh
jredh / pre-push-hook-install.sh
Last active November 6, 2018 21:38 — forked from cvogt/pre-commit-hook-install.sh
git pre-push hook for Scala test passing
#!/bin/sh
cd "$(dirname "$0")"
touch .git/hooks/pre-push
rm .git/hooks/pre-push
ln -s ../../pre-push-hook.sh .git/hooks/pre-push
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $.Scratch.Add "path" .Site.BaseURL }}
<ol class="breadcrumbs">
<li><a href="/">home</a></li>
{{ range $index, $element := split $url "/" }}
{{ $.Scratch.Add "path" $element }}
{{ if ne $element "" }}
<li><a href='{{ $.Scratch.Get "path" }}'>{{ . }}</a></li>
{{ $.Scratch.Add "path" "/" }}
{{ end }}
@jredh
jredh / about.md
Last active June 13, 2017 17:40 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
require('GlobalStrings')
-- generated from s_bonusStatStringTags
local bonusStats = {
[0] = "ITEM_MOD_MANA_SHORT",
[1] = "ITEM_MOD_HEALTH_SHORT",
[3] = "ITEM_MOD_AGILITY_SHORT",
[4] = "ITEM_MOD_STRENGTH_SHORT",
[5] = "ITEM_MOD_INTELLECT_SHORT",
[6] = "ITEM_MOD_SPIRIT_SHORT",
namespace System.Web.Mvc
{
public static class HelperExtensions
{
public static MvcHtmlString If(this MvcHtmlString value, bool evaluation)
{
return evaluation ? value : MvcHtmlString.Empty;
}
}
}