This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
| from flask import Flask | |
| from flask import request | |
| from flask import jsonify | |
| from flask import send_from_directory | |
| app = Flask(__name__) | |
| @app.route('/', defaults=dict(filename=None)) |
| # -*- coding: utf-8 -*- | |
| from mpl_finance import candlestick_ohlc | |
| import numpy as np | |
| from matplotlib import pyplot | |
| import pandas as pd | |
| from bs4 import BeautifulSoup | |
| import urllib.request | |
| import re |
| #!/usr/bin/python | |
| """Python script to create a histogram of words in a text file. | |
| Usage: python word_frequency.py -f "/path/to/file.txt" -n 200 | |
| Specify the path to the text file as above. Manually specify the top N words to report (default 100). | |
| Text file can contain punctuation, new lines, etc., but special characters aren't handled well. |
This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
Windows PowerShell has several transition aliases that allow UNIX and CMD users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.
| CMD Command | UNIX Command | PowerShell Command | PowerShell Alias |
|---|---|---|---|
| dir | ls | Get-ChildItem | gci |
| from tika import parser | |
| import os | |
| def extract_text_from_pdfs_recursively(dir): | |
| for root, dirs, files in os.walk(dir): | |
| for file in files: | |
| path_to_pdf = os.path.join(root, file) | |
| [stem, ext] = os.path.splitext(path_to_pdf) | |
| if ext == '.pdf': |
| # Download all of Analog Dialogue | |
| # Generates a lot of 404 errors, but ultimately gets the job done quickly | |
| # without producing any extra cruft on your HDD. | |
| import os | |
| volumes = range(1,54) | |
| numbers = range(1,4) | |
| url_base = "https://www.analog.com/media/en/analog-dialogue/" | |
| url_list = [] |
| # Download all of Analog Dialogue | |
| # Generates a lot of 404 errors, but ultimately gets the job done quickly | |
| # without producing any extra cruft on your HDD. | |
| import os | |
| volumes = range(1,54) | |
| numbers = range(1,4) | |
| url_base = "https://www.analog.com/media/en/analog-dialogue/" | |
| url_list = [] |