I hereby claim:
- I am jirikuncar on github.
- I am jirikuncar (https://keybase.io/jirikuncar) on keybase.
- I have a public key ASAO85pR4iDSbCVYfJXmhMiPC9CeUBlqj8OzSOiT3uAcxQo
To claim this, I am signing this object:
find invenio -iname \*.py -exec grep -H -E -o -c "^# -\*- coding: utf-8 -\*-$" {} \; | grep py:0 | cut -d: -f1 |
import subprocess | |
from invenio.base.factory import with_app_context | |
def html2rst(html): | |
p = subprocess.Popen(['pandoc', '--from=html', '--to=rst'], | |
stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
return p.communicate(html)[0] | |
@with_app_context() | |
def main(): |
git log --author="`git config --get user.name`" --pretty=tformat: --numstat --since=`date --date='1 year ago' +"%Y-%m-%d"` | awk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines: %s total lines: %s\n",add,subs,loc }’ - |
COMMIT=$1 | |
YEAR=`date +"%Y"` | |
START=${YEAR:0:3} | |
END=${YEAR:3:4} | |
CMD="sed -i '' 's/\($START[^$END]\) CERN\.$/\1, $YEAR CERN./'" | |
echo $CMD `git diff-tree --no-commit-id --name-only -r $COMMIT` | sh |
git clone https://github.com/inveniosoftware/invenio-$PACKAGE | |
cd invenio-$PACKAGE/ | |
git remote add invenio https://github.com/inveniosoftware/invenio | |
git fetch invenio | |
git checkout -b master invenio/master | |
git log --follow invenio/modules/$PACKAGE/models.py | |
git log --stat --follow invenio/modules/$PACKAGE/models.py | |
git checkout -b rename fe01274ee7afa8025ae5bfea88eb231dd299637a | |
git checkout -b pre-rename rename~ | |
git filter-branch -f --subdirectory-filter modules/$LEGACY/ |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# A script to set up a new mac. Uses bash, homebrew, etc. | |
# Focused for ruby/rails development. Includes many utilities and apps: | |
# - homebrew, rvm, node | |
# - quicklook plugins, terminal fonts | |
# - browsers: chrome, firefox | |
# - dev: iterm2, sublime text, postgres, chrome devtools, etc. | |
# - team: slack, dropbox, google drive, skype, etc |
# Add your Python code here. E.g. | |
import math | |
import random | |
from microbit import * | |
enemies = [[1, 0, 0.05]] | |
shots = [] | |
game = True | |
killed = 0 |