Skip to content

Instantly share code, notes, and snippets.

with open(fname) as f:
content = f.readlines()
# you may also want to remove whitespace characters like `\n` at the end of each line
content = [x.strip() for x in content]
@yuan8421
yuan8421 / 0_reuse_code.js
Created January 29, 2016 18:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console