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
# Source code from : https://github.com/yisaienkov/evaluations/blob/master/evaluations/kaggle_2020/global_average_precision.py | |
from typing import Dict, Tuple, Any | |
import pandas as pd | |
def colorstr(*input): | |
*args, string = input if len(input) > 1 else ('blue', 'bold', input[0]) | |
colors = { | |
'blue': '\033[34m', | |
'end': '\033[0m', |
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
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://free.nchc.org.tw/ubuntu/ focal main restricted | |
# deb-src http://free.nchc.org.tw/ubuntu/ focal main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://free.nchc.org.tw/ubuntu/ focal-updates main restricted | |
# deb-src http://free.nchc.org.tw/ubuntu/ focal-updates main restricted |
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
version: '2' | |
services: | |
drone-server: | |
image: drone/drone:2 | |
container_name: cicd-server | |
ports: | |
- 8090:80 | |
extra_hosts: | |
- "10.1.2.102:10.1.2.102" |
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
global-variables: | |
debian_image: &debian_image ubuntu:latest | |
environment: &default_environment | |
server_ip: 10.1.2.102 | |
kind: pipeline | |
type: docker | |
name: test | |
steps: |
OlderNewer