Skip to content

Instantly share code, notes, and snippets.

@altanner
Last active August 1, 2020 11:23
Show Gist options
  • Save altanner/6e6de83142cf576fa241c396a14a4a36 to your computer and use it in GitHub Desktop.
Save altanner/6e6de83142cf576fa241c396a14a4a36 to your computer and use it in GitHub Desktop.
DaSciResCom_example
# hello, this is gist, where snippets of code can be shared
# without needing a full repository.
# here is an example of a gist :)
# chunks splits the screen_name list into manageable blocks:
def chunks(a_list, length_of_chunk):
# For item i in a range that is a length of a_list,
for i in range(0, len(a_list), length_of_chunk):
# Create an index range for a_list of length_of_chunk items
yield a_list[i:i+length_of_chunk]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment