Internal Server Error
20181123
python + vscode + indent + format
Indent block
Select block
CMD + ]
Format block
Select block
CMD + K, F
20181016
Python + Virtualenv + VCcode
Install user Python (~/Library/Python/3.x/bin)
Update PATH in .bash_profile (source .bash_profile)
Install virtualenv: pip install virtualenv
Change dir to project folder (e.g. my_project_folder)
Create virtualenv (e.g. virtualenv my_project)
Activate (e.g. source my_project/bin/activate)
Run VSCode on project folder (e.g. code my_project)
Change python env (⇧⌘P) to my_project/bin/python
Enjoy
20180510
Updated vimrc
set number
syntax on
set tabstop=4
set autoindent
set cursorline
hi CursorLine term=bold cterm=bold ctermbg=DarkBlue
hi LineNr ctermfg=grey guifg=#2b506e guibg=#000000
hi CursorLineNr term=bold ctermfg=Yellow gui=bold guifg=Yellow ctermbg=DarkBlue
set showmatch
set expandtab
set shiftwidth=4
20180419
Sending JSON data via curl
curl -i -H "Content-Type: application/json" \
-X POST -d '{"name":"Zuck","type":"Snake"}' \
http://127.0.0.1:8080/animal
-X [DELETE|POST|GET]
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)