Skip to content

Instantly share code, notes, and snippets.

View CrazyAdmin's full-sized avatar

VOLODYMYR NORTSOV CrazyAdmin

View GitHub Profile
@CrazyAdmin
CrazyAdmin / GLSL-Noise.md
Created February 27, 2020 16:08 — 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);
}
# NGINX CONFIG
server {
listen 80 default_server;
listen [::]:80 default_server;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
@CrazyAdmin
CrazyAdmin / webpack.config.js
Created March 1, 2019 13:10 — forked from timurcatakli/webpack.config.js
An Easy to Understand Webpack 4+ Configuration File with Comments
const publicPath = 'public';
// Node os module
// The os module provides a number of operating system-related utility methods.
// It can be accessed using:
const os = require('os');
// Using a single monolithic configuration file impacts comprehension and
// removes any potential for reusability.
// As the needs of your project grow, you have to figure out the means to manage
// webpack configuration more effectively.