Last active
October 4, 2025 18:19
-
-
Save reatlat/51da08b7b36f4cb842a1ff404f513508 to your computer and use it in GitHub Desktop.
Placeholder gist for the FreshJuice GitHub Gist module β a fruity hello-world with a random emoji π Demo here: https://demo.freshjuice.dev/modules/code-snippet-github-gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * example.js β placeholder gist for FreshJuice GitHub Gist module | |
| * π FreshJuice style: squeeze out a fruity greeting | |
| */ | |
| function squeeze(name = 'world') { | |
| const fruits = ['π', 'π', 'π', 'π₯', 'π']; | |
| const pick = fruits[Math.floor(Math.random() * fruits.length)]; | |
| console.log(`FreshJuice says: Hello, ${name}! ${pick}`); | |
| return `Hello, ${name}! ${pick}`; | |
| } | |
| // Export for environments that support ESM | |
| export { squeeze }; | |
| // Or attach to global (so it's visible when embedded) | |
| if (typeof window !== 'undefined') { | |
| window.squeeze = squeeze; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GitHub Gist β Placeholder
This is a placeholder gist used as the default example in the FreshJuice GitHub Gist module.
example.jsfile with a simple function