This file contains 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 copy import deepcopy | |
class Wall: | |
def __init__(self, h, w): | |
self.w = w | |
self.h = h | |
self.array = [[0]*w for _ in range(h)] | |
self.tileValue = 1 | |
def putTile(self, x, y, h, w, v=None): |
This file contains 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
" Set internal encoding of vim, not needed on neovim, since coc.nvim using some | |
" unicode characters in the file autoload/float.vim | |
set encoding=utf-8 | |
" TextEdit might fail if hidden is not set. | |
set hidden | |
" Some servers have issues with backup files, see #649. | |
set nobackup | |
set nowritebackup |
This file contains 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
{ | |
"coc.preferences.formatOnSaveFiletypes": [ | |
"css", | |
"markdown", | |
"javascript", | |
"javascriptreact", | |
"graphql", | |
"html", | |
"yaml", | |
"json", |
This file contains 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
set runtimepath^=~/.vim runtimepath+=~/.vim/after | |
let &packpath = &runtimepath | |
source ~/.vimrc | |
source ~/.config/nvim/plug-config/coc.vim |
This file contains 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
{ | |
"dependencies": { | |
"coc-clang-format-style-options": ">=0.0.5", | |
"coc-clangd": ">=0.9.0", | |
"coc-cmake": ">=0.1.1", | |
"coc-css": ">=1.2.6", | |
"coc-json": ">=1.3.4", | |
"coc-php-cs-fixer": ">=0.1.2", | |
"coc-prettier": ">=1.1.23", | |
"coc-python": ">=1.2.13", |
This file contains 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
" maps key sequence jk to <ESC> | |
inoremap jk <ESC> | |
" changes leader key from \ to ' | |
let mapleader = "'" | |
" some editting related stuff | |
syntax enable | |
set number | |
set noswapfile | |
set hlsearch | |
set ignorecase |