I hereby claim:
- I am benguillet on github.
- I am benjaminguillet (https://keybase.io/benjaminguillet) on keybase.
- I have a public key whose fingerprint is 149C 194E F1FF FE6C 36C3 2F39 18C9 EBEB 2B8F 5E1D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[push] | |
default = simple |
-- Always show how long a query takes | |
\timing | |
-- Auto extended display mode | |
\x auto | |
-- Prompt db_name@host | |
\set PROMPT1 '%/@%m %R%# ' |
[alias] | |
; Get a summary of yesterday commits. Useful for Scrum standup. | |
standup = "!git log --since yesterday --author `git config user.email` --pretty=short" |
// Javascript Mapper | |
function mapper(key, value) { | |
var words = key.split(' '); | |
for (var i = 0; i < words.length; ++i) { | |
Wmr.emit(words[i], '1'); | |
} | |
} |
if request.method == 'POST': | |
if form.is_valid(): | |
# write file in ~/hipercic/apps/dcor/jobs/ | |
with open('apps/dcor/jobs/job_' + datetime.today().strftime("%Y%m%d_%H%M%S") + '_params.txt', 'w') as params_file: | |
for key, val in form.cleaned_data.iteritems(): | |
params_file.write(str(val) + ' \n') | |
scp = 'scp /home/guillet/hipercic/' + params_file.name + ' [email protected]:dcor/jobs/' | |
context['scp'] = scp | |
return_code_scp = subprocess.call(scp, shell=True) |
Install Python
$ brew install readline sqlite gdbm --universal
$ brew install python --universal --framework
$ python --version
Python 2.7.3
Symlinks...