-
Simplest intro to git by github and codeschool - Try Git
-
[Intro to github]
This file contains 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
collections.Counter() | |
A counter is a container that stores elements as dictionary keys, and their counts are stored as dictionary values. | |
>>> from collections import Counter | |
>>> | |
>>> myList = [1,1,2,3,4,5,3,2,3,4,2,1,2,3] | |
>>> print Counter(myList) | |
Counter({2: 4, 3: 4, 1: 3, 4: 2, 5: 1}) | |
>>> | |
enumerate() | |
adds a counter to an iterable and returns it in a form of enumerate object. This enumerate object can then be used directly in for loops |
This file contains 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
from contextlib import contextmanager | |
@contextmanager | |
def files(*ff): | |
fi = [ open(*f) if len(f) == 2 else open(f) for f in ff ] | |
yield(fi) | |
map(close,fi) |
This file contains 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
import cookielib | |
import urllib2 | |
import json | |
import base64 | |
import simplejson | |
import ast | |
import datetime | |
import xlsxwriter | |
import subprocess | |
import os |
This file contains 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
####### Search and Match Files in a directory ####### | |
os.chdir(path) | |
""" take list of all files present | |
in the directory as a list""" | |
fnames = [ | |
fname for fname in os.listdir(path) | |
if os.path.isfile(os.path.join(path, fname)) | |
] | |
print(fnames) | |
This file contains 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
These courses can help lay the foundation for quantitative thinking. | |
1. Introduction to Mathematical Thinking | |
School: Stanford | |
Platform: Coursera | |
Instructor: Keith Devlin | |
Description excerpt: [A] key feature of mathematical thinking is thinking outside-the-box | |
- a valuable ability in today's world. This course helps to develop that crucial way of thinking. | |
2.Math is Everywhere: Applications of Finite Math |
This file contains 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
These courses can help lay the foundation for quantitative thinking. | |
1. Introduction to Mathematical Thinking | |
School: Stanford | |
Platform: Coursera | |
Instructor: Keith Devlin | |
Description excerpt: [A] key feature of mathematical thinking is thinking outside-the-box | |
- a valuable ability in today's world. This course helps to develop that crucial way of thinking. | |
2.Math is Everywhere: Applications of Finite Math |