Edit your milestone and in the description put on a line by itself:
on-merge: backport to v0.14.xfor example.Now if a PR is assigned a milestone before being merged, the bot will submit a backport automatically if possible. You can also manually request a backport:
@MeeseeksDev backport [to] {branch}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _________________________________________________________________________________ test_convex_image _________________________________________________________________________________ | |
| def test_convex_image(): | |
| img = regionprops(SAMPLE)[0].convex_image | |
| # determined with MATLAB | |
| ref = np.array( | |
| [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0], | |
| [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], | |
| [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], | |
| [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # From https://koenig-haunstetten.de/2017/01/02/google-calendar-integration-in-orgmode/ | |
| # | |
| # Install into crontab with `crontab -e`: | |
| # | |
| # 3 * * * * ~/scripts/gcal-sync-org > /dev/null 2>&1 | |
| # | |
| # Modify your emacs init script to load `diary.google` from DIARY_PATH: | |
| # |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib.request | |
| import os | |
| archive = 'https://mail.python.org/pipermail/numpy-discussion' | |
| months = ('January', 'February', 'March', 'April', 'May', 'June', 'July', | |
| 'August', 'September', 'October', 'November', 'December') | |
| output = 'mirror' | |
| if not os.path.isdir(output): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| CONTAINERS=$(docker ps -aq) | |
| IMAGES=$(docker images --filter dangling=true --quiet) | |
| if [[ $CONTAINERS ]]; then | |
| docker rm $CONTAINERS | |
| else | |
| echo "No containers to remove" | |
| fi | |
| if [[ $IMAGES ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In [3]: deprecated? | |
| Init signature: deprecated(alt_func=None, behavior='warn', removed_version=None) | |
| Docstring: | |
| Decorator to mark deprecated functions with warning. | |
| Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. | |
| Parameters | |
| ---------- | |
| alt_func : str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cimport numpy as cnp | |
| import numpy as np | |
| ctypedef int (*kernel)(double[:] arr) | |
| cdef kernel0(double[:] arr): | |
| cdef int i | |
| for i in range(arr.shape[0]): | |
| arr[i] = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import numpy as np | |
| res = subprocess.check_output(['git', 'shortlog', '-s', '-n', '--merges', | |
| '--first-parent', 'master', | |
| '--since="1 year ago"']) | |
| res = res.decode('utf-8').split('\n') | |
| res = [r for r in res if r.strip()] | |
| merges, authors = zip(*[r.split(maxsplit=1) for r in res]) |