Skip to content

Instantly share code, notes, and snippets.

View umeshnrao's full-sized avatar

Umesh Rao umeshnrao

  • Bangalore,India
View GitHub Profile
# 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}
}
@umeshnrao
umeshnrao / git_commands.txt
Created July 20, 2017 06:08
git command commands
# 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
@umeshnrao
umeshnrao / modified_time_modifier.py
Last active February 25, 2017 18:39
Change the modified time for all the files in a directory based on the timestamp present in the filename
# 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/