- Python 3
- Pip 3
$ brew install python3
/* MongoDB cheat sheet */ | |
// replication lag via serverStatus() | |
db._adminCommand( { serverStatus : 1 , repl ; 2 } ) | |
// stats | |
db.stats() | |
db.foo.stats() | |
// size of BSON of some query |
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py | |
$ cd <download location> | |
$ sudo -H ./get-pip.py | |
Use pip to install pip3 | |
$ sudo -H pip install pip3 | |
Installing pip3 also installs Python3 | |
To run Python3 | |
$ python3 |
The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
$ mkdir ~/selenium
$ cd ~/selenium
$ wget http://goo.gl/rQhaxb
$ mv selenium-server-standalone-2.49.1.jar ~/selenium/
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
# vim: set fileencoding=utf-8 : | |
# | |
# How to store and retrieve gzip-compressed objects in AWS S3 | |
########################################################################### | |
# | |
# Copyright 2015 Vince Veselosky and contributors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
# Install R + RStudio on Ubuntu 16.04 | |
sudo apt-key adv βkeyserver keyserver.ubuntu.com βrecv-keys E084DAB9 | |
# Ubuntu 12.04: precise | |
# Ubuntu 14.04: trusty | |
# Ubuntu 16.04: xenial | |
# Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/ | |
sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/' | |
sudo apt-get update |
#!/usr/bin/env bash | |
# Author Saloua Litayem | |
# For more details about pylint check https://docs.pylint.org/en/1.6.0/index.html | |
if [ "$#" -lt 1 ] | |
then | |
echo "Usage: $0 folder_path [pylintrc file] [venv_folder(default: venv)]" | |
exit 1 | |
fi | |
CMD="find $1 -name '*.py'" |