Skip to content

Instantly share code, notes, and snippets.

View LEvinson2504's full-sized avatar
🏠
Working from home

Levinson D'Souza LEvinson2504

🏠
Working from home
  • The Ecosattva Store
  • Mumbai
View GitHub Profile
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'
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
const mongoose = require("mongoose");
// const MenuSchema = new mongoose.Schema({
// });
const MenuSchema = new mongoose.Schema({
itemName: {
type: String,
required: true,
@LEvinson2504
LEvinson2504 / guess_game.py
Created August 15, 2018 15:58
A simple Guessing game
#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