Copy paste the following script, replace the following variables:
OLD_EMAILCORRECT_NAMECORRECT_EMAIL
#!/bin/sh
git filter-branch --env-filter '| #!/bin/bash -e | |
| remote_repo="" | |
| gp_branch="gh-pages" | |
| publish_dir="_build/html" | |
| # Build Sphinx doc | |
| echo "Build documentation." | |
| rm -rf ${publish_dir} | |
| make html |
Copy paste the following script, replace the following variables:
OLD_EMAILCORRECT_NAMECORRECT_EMAIL#!/bin/sh
git filter-branch --env-filter '| import requests | |
| class Mut2Seq: | |
| """Given mutation, extract flanking protein sequence using Ensembl API. | |
| """ | |
| def __init__(self, server='https://rest.ensembl.org', | |
| species='homo_sapiens'): | |
| self.server = server | |
| self.species = species |
Simple script to capture webcam and detect faces.
import cv2
def capture_webcam():
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
cap = cv2.VideoCapture(0)
while(True):Lifecycles consist of phases, which can invoke a set of configured goals provided by certain plugins.
built-in build lifecycles:
default lifecycle comprises of the following main phases:
Create personal library directory and set it to default in Rstudio Server:
# Create .Rprofile file in the home folder and insert the following code:
.libPaths(c("/home/users/linh35/R/x86_64-pc-linux-gnu-library/3.2", .libPaths()))
# To re-config CPAN
cpan> o conf init
# To install packages with local::lib
perl -MCPAN -Mlocal::lib -e shell
cpan> install Statistics::R
conda info
conda update conda
conda update anaconda
conda info --envs # List all environments.
conda list # List all packages and versions installed in active environment.
conda create --prefix ~/bio-env biopython # Create an environment named bio-env in your home directory and install the biopython.
conda create --name bio-env biopython # Create an environment in default directory.
source activate ~/bio-env # Activate env.