What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-08 20:32:03
Python module import path setting
# import statement will search the following path in turn: # 1. current directory of the script file which runs `import` # 2. directories in the environ variable `PYTHONPATH` # 3. An installation-dependent list of directories configured at the time Python... Add solution -
Java 2021-09-04 17:33:02
how to create driver object
Driver class: -Driver class is public, has a private constructor and private WebDriver object which named driver, so that no object can be created outside the class. It is also an example for "singleton design pattern". -Webdriver driver is pr... Add solution -
Shell/Bash 2021-09-01 06:26:01
bash symlink everything in a directory
# Basic syntax: ln -s /path/to/directory/* /path/to/symlinks/ # Where: # - The /path/to/directory/ is where the real files are stored # - The /path/to/symlinks/ is where the symlinks will be created # - -s means symlink # Note, I also like to add the -f a... Add solution -
Shell/Bash 2021-08-29 19:28:02
github set branch upstream
git branch --set-upstream-to <remote-branch> // example git branch --set-upstream-to origin feature-branch // show up which remote branch a local branch is tracking git branch -vv // short version to set upstream with very first push git push -u ... Add solution -
Shell/Bash 2021-08-27 23:56:02
git set upstream
git branch --set-upstream-to <remote-branch> // example git branch --set-upstream-to origin feature-branch // show up which remote branch a local branch is tracking git branch -vv // short version to set upstream with very first push git push -u ... Add solution -
Shell/Bash 2021-08-26 10:56:02
git push set upstream
git branch --set-upstream-to <remote-branch> // example git branch --set-upstream-to origin feature-branch // show up which remote branch a local branch is tracking git branch -vv // short version to set upstream with very first push git push -u ... Add solution -
Shell/Bash 2021-08-25 14:40:16
install ruby and rails on mac
brew install rbenv ruby-build # Add rbenv to bash so that it loads every time you open a terminal echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc source ~/.zshrc # Install Ruby rbenv install 2.6.6 rbenv ... Add solution