Skip to content

Instantly share code, notes, and snippets.

@heavenshell
Created January 16, 2013 15:00
Show Gist options
  • Save heavenshell/4547716 to your computer and use it in GitHub Desktop.
Save heavenshell/4547716 to your computer and use it in GitHub Desktop.
echomsg 'begin'
python <<EOF
# coding: utf-8
import time
def func():
for i in range(0, 10):
yield i
time.sleep(1)
for i in func():
print i
EOF
echomsg 'end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment