Skip to content

Instantly share code, notes, and snippets.

View roberto-arista's full-sized avatar

Roberto Arista roberto-arista

View GitHub Profile
@eevee
eevee / perlin.py
Last active June 20, 2024 01:58
Perlin noise in Python
"""Perlin noise implementation."""
# Licensed under ISC
from itertools import product
import math
import random
def smoothstep(t):
"""Smooth curve with a zero derivative at 0 and 1, making it useful for
interpolating.
import os
import vanilla
def showHide(sender):
value = "true"
if "Hide" in sender.getNSButton().title():
value = "false"
os.system(f"defaults write com.apple.finder CreateDesktop {value} && killall Finder")