Skip to content

Instantly share code, notes, and snippets.

View tomma5o's full-sized avatar

Tommaso Poletti tomma5o

View GitHub Profile
@tomma5o
tomma5o / superShell.bash
Last active January 2, 2023 03:32
This gist is for standard install of the zsh shell and oh-my-zsh configuration with spaceship theme
#!/bin/bash
# For use this script copy&paste this in your terminal:
# bash <(curl -s https://gist.githubusercontent.com/tomma5o/302be3dc6e2092743e6049570e102a09/raw/superShell.bash)
OPTIONS="OSX Debian"
SELECTED="null"
echo Where you want to activate zsh?
select opt in $OPTIONS; do
@niw
niw / fetch_nike_puls_all_activities.bash
Last active June 10, 2024 11:43
A simple NikePlus API description to fetch past run metrics
#!/usr/bin/env bash
# fetch_nike_puls_all_activities.bash
# A simple bash script to fetch all activities and metrics from NikePlus.
# See `nike_plus_api.md` for the API details.
readonly bearer_token="$1"
if [[ -z "$bearer_token" ]]; then
echo "Usage: $0 bearer_token"
exit
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active July 2, 2024 09:31
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);