A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| # Tuenti Challenge 2017 | Challenge 1 - Pizza love | |
| # https://contest.tuenti.net/resources/2017/Question_1.html | |
| import math | |
| class SliceCounter: | |
| def open_input_file(self, input_path): |
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Pre-loaded theme | |
| ZSH_THEME="agnoster" | |
| # (Will change per machine) | |
| DEFAULT_USER="danmiller" | |
| # Dots are pretty. |
First of all, it just seems like doing anything with Oracle is obnoxiously painful for no good reason. It's the nature of the beast I suppose. cx_oracle is a python module that allows you to connect to an Oracle Database and issue queries, inserts, updates..usual jazz.
Step 1:
sudo apt-get install build-essential unzip python-dev libaio-devStep 2. Click here to download the appropriate zip files required for this. You'll need:
| #!/bin/bash | |
| # save the file as <git_directory>/.git/hooks/pre-commit | |
| echo "Running Maven clean test for errors" | |
| # retrieving current working directory | |
| CWD=`pwd` | |
| MAIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| # go to main project dir | |
| cd $MAIN_DIR/../../ |