I hereby claim:
- I am johannes-scharlach on github.
- I am johanness (https://keybase.io/johanness) on keybase.
- I have a public key ASDntJGs49AFfJRAIcYaFzeJLQT1MPfJNvMkf_xUr7RrsQo
To claim this, I am signing this object:
{ | |
"name": "renovate-config-johanness", | |
"renovate-config": { | |
"base": { | |
"extends": [ | |
"config:base", | |
":onlyNpm", | |
":preserveSemverRanges", | |
"johanness:scheduleDuringWorkinghours", | |
"johanness:maintainLockFile", |
module.exports = fn => (req, res) => { | |
const { query, body, method } = req | |
Promise.resolve( | |
fn({ query, body }, method) | |
).then(({ status, responseBody }) => { | |
res.status(status).send(responseBody) | |
}) | |
} |
git remote prune origin | |
git branch -r --merged master | egrep -iv '(main|production)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin | |
git branch --merged | egrep -v "(^\*|main|production)" | xargs git branch -d |
I hereby claim:
To claim this, I am signing this object:
def mod_exp(base, power, modulus): | |
"""returns base**power % modulus""" | |
result = 0 | |
if power > 1: | |
if power % 2 == 1: | |
result = base * mod_exp(base, power-1, modulus) | |
else: | |
results_root = mod_exp(base, power/2, modulus) | |
result = results_root * results_root | |
if result > modulus: |
I hereby claim:
To claim this, I am signing this object:
def fibonacci(n, a=-1, b=1): | |
return [a, b] if n==0 else fibonacci(n+(n<0)-(n>0), b-a*(n<0), a+b*(n>0)) |