Instantly share code, notes, and snippets.

View Simple Linear Regression.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Compute Fisher Linear Discriminant.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Encrypt and Decrypt with Hill Cipher.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View From axpy to exp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:66d0563227c9bcb9915233ee438b31c3
# http://bit.ly/py-eds-1
import hashlib
"""
>>> cut ("HelloWorld", 5)
('Hello', 'World')
"""
def cut(msg, cut_point):
return (msg[:cut_point], msg[cut_point:])