Proxy to services based on Accept
header.
docker-compose up -d
# or $GIT_DIR/info/attributes or $XDG_CONFIG_HOME/git/attributes or $HOME/.config/git/attributes | |
poetry.lock merge=poetry-lock |
body { | |
counter-reset: h2counter; | |
} | |
h1 { | |
counter-reset: h2counter; | |
} | |
main h2:before { | |
content: counter(h2counter) ".\0000a0\0000a0"; |
#!/usr/bin/env bash | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
# Path to the bash it configuration | |
export BASH_IT="${HOME}/.bash_it" |
FROM python:3.7-alpine | |
RUN pip install flask | |
COPY app.py /code/app.py | |
WORKDIR /code | |
ENV FLASK_APP=app:app | |
CMD ["flask", "run", "-h", "0.0.0.0"] |
import collections | |
import datetime | |
import logging | |
from goblin import properties | |
logger = logging.getLogger(__name__) | |
CARD_MAPPING = {'Cardinality.single': 'Cardinality.SINGLE', |
export CSCS_USER=unixname
.ssh_config
template:
$ cat >> ~/.ssh/config <<EOF
Host *
AddKeysToAgent yes # only for MacOS
Download try_calls.py and install pylint
$ pip install pylint
Run pylint with an additional plugin on a bad.py file
$ pylint --load-plugins=try_calls bad.py
In case you try_calls.py is not recognized add it to PYTHONPATH.
import sys | |
from getpass import getpass | |
import github3 | |
def main(_, username, name='inveniosoftware'): | |
gh = github3.login(username, password=getpass()) | |
org = gh.organization(name) | |
for repo in org.repositories(): | |
tags = list(repo.tags(1)) |
# Add your Python code here. E.g. | |
import math | |
import random | |
from microbit import * | |
enemies = [[1, 0, 0.05]] | |
shots = [] | |
game = True | |
killed = 0 |