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 relativenumber | |
set nu rnu | |
set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab autoindent smartindent | |
set cursorline | |
set encoding=utf-8 | |
call plug#begin('~/.vim/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'rakr/vim-one' | |
Plug 'arcticicestudio/nord-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
syntax enable " enable syntax processing | |
filetype plugin on " enable file type plugin | |
autocmd BufEnter *.{js,jsx,ts,tsx} :syntax sync fromstart | |
autocmd BufLeave *.{js,jsx,ts,tsx} :syntax sync clear | |
set tabstop=4 " number of visual spaces per TAB | |
set softtabstop=4 " number of spaces in tab when editing | |
set expandtab " tabs are spaces | |
set number " show line numbers |
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
const mongoose = require("mongoose"); | |
// const MenuSchema = new mongoose.Schema({ | |
// }); | |
const MenuSchema = new mongoose.Schema({ | |
itemName: { | |
type: String, | |
required: true, |
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
#need to make it so that random words are imported, i couldnt get it to work | |
#words = requests.get("http://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain").content.splitlines() | |
secret_word = "Levinson" | |
secret_word = secret_word.lower() | |
length = int(len(secret_word)) | |
hint = "" | |
hint_list = list() #strings are immutable | |
guess = "" | |
guess_count = 0 | |
guess_limit = len(secret_word)/2 |