Skip to content

Instantly share code, notes, and snippets.

@stevepeak
Last active January 3, 2020 17:54
Show Gist options
  • Save stevepeak/2046cd43c19b34213c7a259bfca6a167 to your computer and use it in GitHub Desktop.
Save stevepeak/2046cd43c19b34213c7a259bfca6a167 to your computer and use it in GitHub Desktop.

counter-tweet

With Storyscript, we got it done in under 4 minutes and 4 lines of code.

(Updated) Sad the the tweet was deleted...because some of the answers were half a days work using terminal, git and containers.

# Simple website that displays it's hit counter
@count = 0
when http server listen path:"/" as req
x = @count increment
req write content:"This page has been loaded {x} times."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment