With git you can add a submodule to a repository. A submodule is another repository inside a repository.
git submodule add git@github.com:my_account/my_submodule.git path_to_my_submodule
| /** | |
| * | |
| * @param baseCurrency string - Ex. "USD" | |
| * @param exchangeCurrency string - Ex. "EUR" | |
| * @param refreshCache boolean - Default false | |
| * @returns number - Ex. 0.95 | |
| */ | |
| function GET_EXCHANGE_RATE(baseCurrency, exchangeCurrency, refreshCache = false) { | |
| const exchangeRateCacheKey = 'exchange_rate' + '_' + baseCurrency + '_' + exchangeCurrency | |
| const cache = CacheService.getScriptCache(); |
| // made according to typst ieee template and official acm word template | |
| // --- Draft Formatting | |
| // Papers will be submitted electronically in PDF format via the web submission form. | |
| // 1. Submissions may have at most 12 pages of technical content, including all text, figures, tables, etc. Bibliographic references are not included in the 12-page limit. | |
| // 2. Use A4 or US letter paper size, with all text and figures fitting inside a 178 x 229 mm (7 x 9 in) block centered on the page, using two columns separated by 8 mm (0.33) of whitespace. | |
| // 3. Use 10-point font (typeface Times Roman, Linux Libertine, etc.) on 12-point (single-spaced) leading. | |
| // 4. Graphs and figures should be readable when printed in grayscale, without magnification. |
| """ | |
| Example of using fcntl.flock for locking file. Some code inspired by filelock module. | |
| """ | |
| import os | |
| import fcntl | |
| import time | |
| def acquire(lock_file): |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
| from pprint import pformat | |
| from typing import Any | |
| from pygments import highlight | |
| from pygments.formatters import Terminal256Formatter | |
| from pygments.lexers import PythonLexer | |
| def pprint_color(obj: Any) -> None: | |
| """Pretty-print in color.""" |