Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.39 KB

README.md

File metadata and controls

43 lines (37 loc) · 1.39 KB

Sources for AtCoder programming contests

Links

Quick Usage

$ git clone https://github.com/itohdak/AtCoder.git
$ cd AtCoder

# define function "mkdir_atcoder" in .bashrc
# add AtCoder/include to $CPATH in .bashrc
$ source setup.sh
$ exec bash

$ mkdir_atcoder [folder_name]
# you can see a new folder named [folder_name] which includes sample cpp files

Utils

pbcopy

You can copy your codes into the clipboard and paste them with Ctrl-V

How to enable

Add following lines to ~/.bashrc

# copy to clipboard
alias pbcopy='xsel --clipboard --input'

Before using it, you may first need to install xsel with a following command

$ sudo apt install xsel

Sample Usage

$ cat A.cpp | pbcopy
# Ctrl-V on where you like to paste the codes