Regular expression is a group of characters or symbols which is used to find a specific pattern from a text.
A regular expression is a pattern that is matched against a subject string from left to right. The word "Regular expression" is a
An informational response indicates that the request was received and understood. It is issued on a provisional basis while request processing continues. It alerts the client to wait for a final response.
100 Continue
101 Switching Protocols
102 Processing
This class of status codes indicates the action requested by the client was received, understood, accepted, and processed successfully.
200 OK
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
echo "xxx" >> README.md [or] touch README.md | |
git init | |
git add . --all | |
git commit -m "Initial commit" | |
git remote add origin <git-web-url> | |
git push -u origin master | |
if error: failed to push some refs to <git link> then: | |
git pull --rebase origin master | |
git push -u origin master |
import IPython.nbformat.current as nbf | |
nb = nbf.read(open('test.py', 'r'), 'py') | |
nbf.write(nb, open('test.ipynb', 'w'), 'ipynb') |
import pickle | |
a = [1,2] | |
b = [3,4] | |
with open("tmp.pickle", "wb") as f: | |
pickle.dump((a,b), f) | |
with open("tmp.pickle", "rb") as f: | |
a,b = pickle.load(f) |