- Download the shell script bellow
- Make it executable:
chmod +x puml-to-md-image.sh
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
| # Put any local modifications here. | |
| # Run FPM under this UID/GID. | |
| # OWNER_UID=1000 | |
| # OWNER_GID=1000 | |
| # FPM settings. | |
| #PHP_WORKER_MAX_CHILDREN=5 | |
| #PHP_WORKER_MEMORY_LIMIT=256M |
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
| const val LAST_INTERNAL = "~" | |
| class PositionGenerator(private val ID: String) { | |
| companion object { | |
| const val FIRST: String = "" | |
| const val LAST: String = LAST_INTERNAL | |
| } | |
| private val longName: String = ",$ID." | |
| private val firstName: String = "$ID." |
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
| type ClientParams = { boardID: number; collaboratorID: string }; | |
| /** | |
| * POC of generating short CharIDs per board client. (See the reasoning here: https://miro.atlassian.net/wiki/spaces/PT/pages/3180396935/RFC+Collaborative+Editing+on+Ordered+Sequences#Ways-to-tackle-these-issues%3A) | |
| * | |
| * This algorithm respects the _reserved values_ of the total order generator algorithm on the client. | |
| * | |
| * - Everytime a client connects to the board we generate a ASCII char ID. | |
| * - Everytime a client disconnects from the board, we put their char ID in the `free slots` for recycling. | |
| * |
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
| class TaskRunner { | |
| constructor(concurrencyLimit) { | |
| this.count = 0; | |
| this.queue = []; | |
| this.concurrent = concurrencyLimit; | |
| } | |
| add(task) { | |
| const microTask = async () => { | |
| await task(); |
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
| " Plugin setup | |
| call plug#begin() | |
| " Utils | |
| Plug 'seerun/vim-polyglot' | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'ap/vim-css-color' | |
| Plug 'preservim/nerdtree' | |
| Plug 'ctrlpvim/ctrlp.vim' | |
| Plug 'karb94/neoscroll.nvim' | |
| Plug 'tpope/vim-surround' |