Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Hossein Rahimi hrahimi270

🏠
Working from home
View GitHub Profile
@nesimtunc
nesimtunc / ImageController.js
Last active Sep 15, 2021
Minio Server - NodeJS - File Upload & Photo Showing Example
View ImageController.js
const formidable = require('formidable');
const fs = require('fs');
var Minio = require('minio');
let minioClient = new Minio.Client({
endPoint: config.MINIO.ENDPOINT,
port: config.MINIO.PORT,
accessKey: config.MINIO.ACCESS_KEY,
View GLSL-Noise.md

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);
}