Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 2.09 KB

README.md

File metadata and controls

64 lines (44 loc) · 2.09 KB

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.


GravatarDemo-Squeak

Squeak implementation to interact with the Gravatar API.

  • Squeak 6.0 reference platform.
  • Examples and tests included.

Installation

  1. Install and run Squeak.
  2. In a Workspace, evaluate:
Installer ensureRecentMetacello.
Metacello new
  baseline: 'Gravatar';
  repository: 'github://brackendev/GravatarDemo-Squeak:master';
  load.

Example Usage

Evaluate in a Workspace:

"Retrieve the image for the email address, open in an inspector"
(Gravatar retrieveImageForEmail: 'email@example.com') inspect.
"Retrieve the image (200 px by 200 px, rated 'G' or 'PG') for the email address, open in an inspector"
(Gravatar retrieveImageForEmail: 'email@example.com' size: 200 rating: 'pg') inspect.
"Retrieve the profile for the email address, open in an inspector"
(Gravatar retrieveProfileForEmail: 'email@example.com') inspect.

Author

Bracken Spencer

License

GravatarDemo-Squeak is released under the MIT license. See the LICENSE file for more info.


Useful Links