function exampleFetch(){
fetch('https://reqres.in/api/users/2').then(function(response) {
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
FROM python:3.8-bullseye | |
COPY requirements.txt /tmp/requirements.txt | |
RUN pip install -r /tmp/requirements.txt |
if you want to submit parallel jobs with condor_submit
:
condor.sub
universe = docker
docker_image = {{docker_url}}
docker_pull_policy = always
executable = {{bash_filename}}
should_transfer_files = YES
transfer_input_files = {{bash_filename}}
script:
- echo hello cicd
rules:
- if: "($CI_PIPELINE_SOURCE == 'pipeline' || $CI_PIPELINE_SOURCE == 'web') && $CI_COMMIT_TAG != null && $CI_COMMIT_BRANCH == 'main' "
since above rule with CI_COMMIT_TAG
is only triggered when tag
is pushed to gitlab, one can use the below
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
keras_model.h5 | |
tf_model | |
model.onnx | |
updated_tf_model | |
updated_keras_model.h5 |
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
FROM ubuntu:latest | |
RUN apt-get update;apt-get install acl -yq |
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
# | |
# gattia commented on Apr 6, 2018 | |
# https://github.com/keras-team/keras/issues/9395#issuecomment-379276452 | |
# | |
import tensorflow as tf | |
from tensorflow import keras | |
import tensorflow.keras.backend as K | |
def dice_coef(y_true, y_pred, smooth=1e-7): |