I opened .py file to edit in SublimeText project. Inported library (from django import db)
and wrote db. to show autocompletion. But nothing happens.
| ### UPDATE: Use https://postgresapp.com that contains Universal build wih multiple Postgres engines | |
| # 0. install a Postgres | |
| # we use HomeBrew for this | |
| brew install postgres | |
| # init file structure for all databases | |
| initdb /usr/local/var/postgres | |
| # 1. create new user for a database |
I found that users of Create-React-App script have issues with building few projects that are based on the same
"core" library. Let's imagine that you have a ui directory where you keep all UI React components. And you have
two projects - blog and shop.
Now you wish to use the shared UI components in both these projects. But if you will create a symlink to a "raw" source code (where you use ES2015) - you will see that your code can't be imported, because it expects that they should be already compiled.
| """ | |
| >>> 1024+512+256+128+64+32+16+8+4+2+1 | |
| 2047 | |
| >>> bin(2047) | |
| '0b11111111111' | |
| """ |
| # Edit file and add there next function: | |
| nano ~/.zshrc | |
| # - OR - | |
| nano ~/.profile | |
| # Paste this function in the file: | |
| function fix_virtualenv { | |
| # | |
| # Usage: fix_virtualenv project_name |
| # Task: Given a number of tree levels. Print a Christmas tree with the given levels, filled by star symbols (*). | |
| # Example: | |
| # | |
| # print_a_tree(20) | |
| # | |
| # * | |
| # *** | |
| # ***** | |
| # ******* |