This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pickling | |
import pickle | |
# An arbitrary collection of objects supported by pickle. | |
data = { | |
'a': [1, 2.0, 3, 4+6j], | |
'b': ("character string", b"byte string"), | |
'c': {None, True, False} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone data from a remote repository to local machine | |
git clone <repo_url> | |
# Change dir to the downloaded repo | |
cd <folder_name> | |
# Show current branch | |
git branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to change the last modified time of files | |
import os | |
import glob | |
import datetime | |
import time | |
from datetime import datetime | |
import re | |
# String to datetime object http://strftime.org/ |