I hereby claim:
- I am riverfount on github.
- I am riverfount (https://keybase.io/riverfount) on keybase.
- I have a public key ASDKCLuMKpmd7CDiufXcXvsuOhZzLw8hR6WIIdvOig2JVgo
To claim this, I am signing this object:
def generate_batch(generator, batch_size=10): | |
batch = [] | |
for e in generator: | |
if len(batch) == batch_size: | |
yield batch | |
batch = [] | |
batch.append(e) | |
if batch: | |
yield batch |
#!/bin/zsh | |
# This hook is sourced after every virtualenv is deactivated. | |
# Put this file into ~/.envs/ directory | |
unalias manage | |
unalias test | |
unalias startapp | |
unalias runserver | |
unalias testm | |
unalias makemigrations | |
unalias migrate |
#!/bin/zsh | |
# This hook is sourced after every virtualenv is activated. | |
# Put this file in the ~/.envs/ directory | |
alias manage="$VIRTUAL_ENV/bin/python $(pwd)/manage.py" | |
alias test="$VIRTUAL_ENV/bin/python $(pwd)/manage.py test" | |
alias startapp="$VIRTUAL_ENV/bin/python $(pwd)/manage.py startapp" | |
alias runserver="$VIRTUAL_ENV/bin/python $(pwd)/manage.py runserver" | |
alias testm="$VIRTUAL_ENV/bin/python $(pwd)/manage.py test --nomigrations" | |
alias makemigrations="$VIRTUAL_ENV/bin/python $(pwd)/manage.py makemigrations" | |
alias migrate="$VIRTUAL_ENV/bin/python $(pwd)/manage.py migrate" |
# PyCharm Configurations | |
.idea/ | |
.classpath | |
.project | |
.settings/ | |
bin/ | |
*.sqlite3 | |
.venv/ |
[user] | |
name = Vicente Marçal | |
email = [email protected] | |
[core] | |
editor = vim | |
excludesfile = /home/riverfount/.gitignore_global | |
[merge] | |
tool = vimdiff | |
[color] | |
status = auto |
I hereby claim:
To claim this, I am signing this object: