This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
| #!/bin/bash | |
| # @link https://gist.github.com/mattscilipoti/8424018 | |
| # | |
| # Called by "git push" after it has checked the remote status, | |
| # but before anything has been pushed. | |
| # | |
| # If this script exits with a non-zero status nothing will be pushed. | |
| # | |
| # Steps to install, from the root directory of your repo... |
This project is superceded by makefile4latex.
This is a GNU Makefile for typesetting LaTeX documents. Expected to work with
TeXLive on Linux (and similar systems, e.g., on Cygwin). Just download
Makefile and put it in a directory that contains your LaTeX files. Running
make will generate PDF files for you:
| #!/usr/bin/env python | |
| from pocket import Pocket | |
| import webbrowser, sys | |
| # Get consumer key from cmd line | |
| consumer_key = sys.argv[1] | |
| request_token = Pocket.get_request_token( | |
| consumer_key=consumer_key, |
| #!/usr/bin/env python | |
| import paramiko | |
| hostname = 'localhost' | |
| port = 22 | |
| username = 'foo' | |
| password = 'xxxYYYxxx' | |
| if __name__ == "__main__": |
| #List unique values in a DataFrame column | |
| pd.unique(df.column_name.ravel()) | |
| #Convert Series datatype to numeric, getting rid of any non-numeric values | |
| df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
| #Grab DataFrame rows where column has certain values | |
| valuelist = ['value1', 'value2', 'value3'] | |
| df = df[df.column.isin(value_list)] |
| #Paulo Nuin March 2013 | |
| #script that gets the Uniprot accession from a list of gene names | |
| import rethinkdb as r | |
| import sys | |
| gene_table = open(sys.argv[1]).read().splitlines() | |
| #Paulo Nuin March 2013 | |
| #script that extracts gene information from uniprot and saves into a Rethinkdb database | |
| #database is created if needed | |
| #table proteins: | |
| # name (gene name) | |
| # synonyms | |
| # organism | |
| # uniprot_id | |
| # sequence (protein) | |
| # ensembl ids (gene, transcript, protein) |
| #Paulo Nuin March 2013 | |
| #script that extracts gene information from uniprot and saves into a sqlite3 database | |
| #database is created if needed | |
| #table proteins: | |
| # name (gene name) | |
| # synonyms | |
| # organism | |
| # uniprot_id | |
| # sequence (protein) | |
| # ensembl ids (gene, transcript, protein) |
| ### MATPLOTLIBRC FORMAT | |
| # This is a sample matplotlib configuration file - you can find a copy | |
| # of it on your system in | |
| # site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
| # there, please note that it will be overridden in your next install. | |
| # If you want to keep a permanent local copy that will not be | |
| # over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
| # like systems) and C:\Documents and Settings\yourname\.matplotlib | |
| # (win32 systems). |