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
| # -*- coding: utf -*- | |
| import os | |
| import time | |
| import logging | |
| import argparse | |
| import requests | |
| from bs4 import BeautifulSoup |
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
| # -*- coding: utf-8 -*- | |
| import os | |
| import shutil | |
| TARGET_PATH = "" | |
| bad_dirnames = ( | |
| 'venv', |
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
| # -*- coding: utf-8 -*- | |
| import os | |
| import subprocess | |
| def entry(): | |
| for root, _, _ in os.walk('.', topdown=True): | |
| if root == '.': | |
| continue |
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
| # syntax=docker/dockerfile:experimental | |
| # from | |
| FROM pytorch/pytorch:1.2-cuda10.0-cudnn7-runtime | |
| LABEL maintainer="Jamie Seol <theeluwin@gmail.com>" | |
| # apt init | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV LANG=C.UTF-8 | |
| ENV TZ=Asia/Seoul |
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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging | |
| .Python |
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
| \documentclass[12pt,a4paper]{article} | |
| %\input proof | |
| \usepackage{mathpazo} | |
| \usepackage{amssymb} | |
| \usepackage{amsmath} | |
| \usepackage{amsfonts} | |
| \usepackage{graphicx} | |
| \usepackage{color} | |
| \usepackage{epstopdf} | |
| \usepackage{tabularx,ragged2e,booktabs,caption} |
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
| image: docker:stable | |
| before_script: | |
| - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY | |
| - apk update && apk add -y openssh-client | |
| - eval $(ssh-agent -s) | |
| - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null | |
| - mkdir -p ~/.ssh | |
| - chmod 700 ~/.ssh | |
| - ssh-keyscan $DEVELOP_SERVER >> ~/.ssh/known_hosts |
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
| # https://twitter.com/CppDDoLgi/status/1118731208790138880 | |
| # a = 6 b = 3 일 때 2 반환하고 | |
| # a = 7 b = 3 일 때 3 반환하는거 구현하고 싶은데 | |
| import multiprocessing | |
| import torch.nn as nn | |
| from tqdm import tqdm | |
| from torch import Tensor | |
| from torch.utils.data import Dataset |
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
| # -*- coding: utf-8 -*- | |
| # ported from: https://gist.github.com/sclark39/9daf13eea9c0b381667b61e3d2e7bc11 | |
| class Shortcoder(object): | |
| LOWER = 'abcdefghijklmnopqrstuvwxyz' | |
| UPPER = LOWER.upper() | |
| NUMBERS = '0123456789' |
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: "3" | |
| services: | |
| registry: | |
| image: registry:2 | |
| ports: | |
| - 5000:5000 | |
| volumes: | |
| - registry-data-local:/var/lib/registry | |
| restart: always | |
| portainer: |