Group Abstract Group Abstract

Message Boards Message Boards

[GOLF] Code-Golfing websites: How old are you on another planet?

Attachments:
POSTED BY: Vitaliy Kaurov
9 Replies

Could you please explain the syntax of the URLShorten function that appends the shortened URL with a custom word "howoldplanet" ?

POSTED BY: Manjunath Babu

This functionality is available to special accounts, and not to regular users. But you can always generate non-custom random short URL.

POSTED BY: Vitaliy Kaurov
POSTED BY: Manjunath Babu
POSTED BY: Bernat Espigulé
Posted 9 years ago
POSTED BY: J. M.

A very nice try. With my counter it gave exactly 100 characters:

enter image description here

POSTED BY: Vitaliy Kaurov

And actually we do not need pure function there and Map, devision is listable:

Dataset[(Now - DateObject[{1961, 8, 4}])/PlanetData[PlanetData[], "OrbitPeriod", "EntityAssociation"]]
POSTED BY: Vitaliy Kaurov

Very impressive code! thanks for sharing. I can only make it one character smaller:

Grid[{(f=PlanetData)[],(Now-DateObject@{1961,8,4})/f[f[],"OrbitPeriod"]}]

by using the @ rather than []...

POSTED BY: Sander Huisman

Thanks, @Sander! I just realized I could easily turn it into tutorial on making microsites. I added some stuff to the post. I hope more folks will be adopting cloud interfaces.

POSTED BY: Vitaliy Kaurov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard