Skip to content

Instantly share code, notes, and snippets.

View KrabCode's full-sized avatar
🔮
discovering Tooll3

Jakub Rak KrabCode

🔮
discovering Tooll3
  • Prague, Czech Republic
  • 08:33 (UTC +01:00)
View GitHub Profile
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active November 19, 2024 20:51
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

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);
@raineorshine
raineorshine / commit-author.sh
Created October 12, 2017 17:09
Set git commit author for a single repository
git config user.name "ShapeShift-Public"
git config user.email "[email protected]"
https://help.github.com/articles/setting-your-username-in-git/#setting-your-git-username-for-a-single-repository
@ajzeigert
ajzeigert / tarot.json
Last active September 7, 2024 09:49
tarot.json
{
"tarot": [
{
"name": "The Fool",
"suite": "major",
"image": "deck/RWS_Tarot_00_Fool.jpg",
"description": "With light step, as if earth and its trammels had little power to restrain him, a young man in gorgeous vestments pauses at the brink of a precipice among the great heights of the world; he surveys the blue distance before him-its expanse of sky rather than the prospect below. His act of eager walking is still indicated, though he is stationary at the given moment; his dog is still bounding. The edge which opens on the depth has no terror; it is as if angels were waiting to uphold him, if it came about that he leaped from the height. His countenance is full of intelligence and expectant dream. He has a rose in one hand and in the other a costly wand, from which depends over his right shoulder a wallet curiously embroidered. He is a prince of the other world on his travels through this one-all amidst the morning glory, in the keen air. The sun, which shines behind him, knows whence he came, whi
#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif
varying vec4 vertColor;
varying vec3 vertNormal;
varying vec3 vertLightDir;
varying vec4 vertTexCoord;
@tarun-ssharma
tarun-ssharma / Enabling case-insensitive auto-complete for terminal in MacOS BigSur.md
Last active July 28, 2024 11:10
Enable case-insensitive auto-complete whilst giving preference to actual matches

Add these two lines to your ~/.zshrc file:

zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
autoload -Uz compinit && compinit

Tested on:

MacOS BigSur Version 11.5.1

cd

  • bez dalších argumentů vypíše aktuální adresář, aby fungoval git tak by měl být v rootu repozitáře kde je .git složka

git pull --help

  • za každý git příkaz jde napsat --help
@KrabCode
KrabCode / MoonPhaseMonthGrid.pde
Last active November 9, 2024 10:59
A calendar of 365 moons in different phases as a looping trippy visual.
import com.krab.lazy.*;
LazyGui gui;
String[] monthNames = new String[]{
"January",
"February",
"March",
"April",
"May",
"June",