Skip to content

Instantly share code, notes, and snippets.

View helgardferreira's full-sized avatar

Helgard helgardferreira

View GitHub Profile
@pushkine
pushkine / spring.ts
Last active August 3, 2024 18:00
Javascript spring solving algorithm. Solves real life damped harmonic oscillator physics equations as used in Apple iOS & many others. Tweak damping and stiffness for spring behavior, scale mass with value delta and set soft to force solution for a critically damped spring ( no bounce eased smooth ) . Play with this function's graph on www.desmo…
/** MIT License github.com/pushkine/ */
interface SpringParams {
mass?: number; // = 1.0
damping?: number; // = 10.0
stiffness?: number; // = 100.0
soft?: boolean; // = false
}
type seconds = number;
@AdamMarsden
AdamMarsden / zshgit.md
Last active October 10, 2025 00:40
Oh My Zsh - Git Cheat Sheet

#Oh My Zsh - Git Cheat Sheet

ggit

gstgit status

glgit pull

gupgit pull --rebase