In your command-line run the following commands:
brew doctor
brew update
问题: | |
"(){}[]" => True | |
"([{}])" => True | |
"(}" => False | |
"[(])" => False | |
"[({})](]" => False | |
基本思想:在算法中设置一个栈,每读入一个括号,若是右括号,则或者与栈顶匹配的左括号相互消解,或者是不合法的情况;若是左括号,则直接压入栈中。 | |
若括号匹配,在算法的开始和结束时,栈都应该是空的。 | |
defmodule Challenge do |
In your command-line run the following commands:
brew doctor
brew update
"build": "react-scripts build && rm -rf DIR_TO_PHX_APP/priv/static/build && mv build DIR_TO_PHX_APP/priv/static/build",
This will move your prod build files to DIR_TO_PHX_APP/priv/static/build
on build
yarn build
https://ryanstutorials.net/bash-scripting-tutorial/bash-if-statements.php |
#A plug to get cookies from conn | |
defmodule AuthorizedPlug do | |
import Plug.Conn | |
import Phoenix.Controller | |
def init(options) do | |
options | |
end | |
def call(conn, name) do |
#start psql | |
psql postgres | |
# list all databases | |
\l | |
#connect the db | |
\c db_name | |
#list all tables |