My Gravatar demo projects are for developers to get acquainted with languages and platforms with something more than a "Hello World" example. Versions are available for Clojure, F#, Newspeak, Pharo, Racket, and Squeak.
Newspeak implementation to interact with the Gravatar API.
- Newspeak 2018-05-12 reference platform.
- Support the latest Newspeak release.
- Download this project.
- Install and run Newspeak.
- In the Newspeak Browser, select Repositories. Add a new repository with the local repository path (this project's location).
- Select the repository then select revert in the Image column.
- After syncing, the Gravatar namespace will be accessible.
Evaluate in a Workspace:
(* Retrieve the image for the email address *)
| gravatar |
gravatar:: Gravatar usingPlatform: platform.
gravatar retrieveProfileForEmail: '[email protected]'.
(* Retrieve the image (200 px by 200 px, rated 'G' or 'PG') for the email address *)
| gravatar |
gravatar:: Gravatar usingPlatform: platform.
gravatar retrieveImageForEmail: '[email protected]' size: 200 rating: 'pg'.
(* Retrieve the profile for the email address *)
| gravatar |
gravatar:: Gravatar usingPlatform: platform.
gravatar retrieveImageForEmail: '[email protected]'.
Bracken Spencer
GravatarDemo-Newspeak is released under the MIT license. See the LICENSE file for more info.
- Gilad Bracha
- @Gilad_Bracha [Twitter]
- Design of Newspeak Language: Part 1, Part 2
- Room 101
- bracha.org
- Newspeak 101: A Guide for the Perplexed
- Newspeak Google Group
- newspeaklanguage.org