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
#!/usr/bin/env python | |
import sys | |
import sh | |
import json | |
import requests | |
from optparse import OptionParser | |
from contextlib import contextmanager |
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
''' | |
1. Get latest updates on udacity courses via their API | |
2. Using python and pandas will get all the details about courses in a csv file | |
''' | |
import json | |
import urllib | |
import pandas as pd | |
response = urllib.urlopen('https://udacity.com/public-api/v0/courses') |
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 compileall | |
import os | |
# Get current working directory | |
curr_dir = os.getcwd() | |
# Compiles all python files to pyc | |
compileall.compile_dir(curr_dir, force=True) | |
# Recursively iterates to find .py files and remove them |
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
/* | |
This command installs gulp (globally) | |
npm install --global gulp | |
The below listed commands should be done in your project/development folder | |
npm install --save-dev gulp | |
npm install --save-dev gulp-minify-css | |
npm install --save-dev gulp-uglify |