Skip to content

Instantly share code, notes, and snippets.

View mahulst's full-sized avatar

Michel van der Hulst mahulst

  • Amsterdam
  • 02:50 (UTC +02:00)
View GitHub Profile
@mahulst
mahulst / GLSL-Noise.md
Created February 25, 2018 15:45 — 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);
}
@mahulst
mahulst / Haskell-Style-Guide.md
Created September 26, 2017 13:47 — forked from evancz/Haskell-Style-Guide.md
A style guide for Elm tools

Haskell Style Guide for Elm

Goal: a consistent style throughout all Elm projects that is easy to read and produces clean diffs to make debugging easier. This means valuing regularity and simplicity over cleverness.

Line Length

Keep it under 80 characters. Going over is not the end of the world, but consider refactoring before you decide a line really must be longer.

Variables

@mahulst
mahulst / LoginMsg.elm
Created June 7, 2017 08:26 — forked from ryan-senn/LoginMsg.elm
Update nesting
module Modules.Auth.Login.Msg exposing (..)
import Http exposing (Error)
import Types exposing (User)
type LoginMsg
= LoginUpdateEmail String
| LoginUpdatePassword String