Skip to content

Instantly share code, notes, and snippets.

@Skrylar
Last active November 16, 2017 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skrylar/a123e61419ada6e1ecf4243a186e8f1c to your computer and use it in GitHub Desktop.
Save Skrylar/a123e61419ada6e1ecf4243a186e8f1c to your computer and use it in GitHub Desktop.
var cobweb = Cobweb()
cobweb.def_root(inflation, float)
cobweb.def_root(monies, float)
cobweb.def_root(transhumanity, bool)
cobweb.def rich, bool:
result(monies):
monies > 1000000
cobweb.def future_monies, float:
result(monies, inflation):
monies * inflation
do:
echo "In the future I will have ", future_monies, " monies."
let event_id = cobweb.on(rich, transhumanity) do:
self.enabled = rich or transhumanity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment