This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Installer logs ### | |
pip-log.txt | |
### Django ### | |
*.log | |
*.pot | |
*.pyc | |
__pycache__/ | |
local_settings.py | |
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.dropbox.com/s/xpfbcnnnkmjvwdv/Screenshot%202015-02-02%2022.02.06.png?dl=0 | |
# Equilibrium problem | |
array = [-1, 3, -4, 5, 1, -6, 2, 1] | |
def solution(array): | |
right = sum(array) | |
left = 0 | |
before = 0 | |
for index, val in enumerate(array): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Click on PyCharm -> Preferences | |
- Click on Project Interpreter -> Python Interpreter | |
- Click on the "+" -> Local | |
- Go to your home directory -> .virtualenvs -> writers -> bin | |
- Choose the file that's just called python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Run changed javascript files through jshint before commiting and prevent bad | |
# code from being committed. | |
# If you need to prevent newly added js from being checked because its in a | |
# library like bower_components, add a .jshintignore file and list the directory | |
# INSTALL: Add as a file in your repo as .git/hooks/pre-commit | |
FILES=$(git diff --cached --name-only --diff-filter=ACM| grep ".js$") | |
if [ "$FILES" = "" ]; then | |
exit 0 |