Skip to content

Instantly share code, notes, and snippets.

@Zeex
Last active January 4, 2016 10:59
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 Zeex/8612208 to your computer and use it in GitHub Desktop.
Save Zeex/8612208 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
if len(sys.argv) > 1:
num_lines = int(sys.argv[1])
else:
num_lines = 2**16
print("""
#include <a_samp>
halt() {
#emit halt 1
}
main() {
""")
for i in range(1, num_lines + 1):
print(' print("%i");' % i)
print("""
halt();
}
""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment