What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-26 10:52:02
export flask app
# Extremely simple flask application, will display 'Hello World!' on the screen when you run it # Access it by running it, then going to whatever port its running on (It'll say which port it's running on). from flask import Flask app = Flask(__name__) @a... Add solution -
-
Go 2021-08-26 10:51:02
Expected 2 arguments, but got 1.ts(2554) core.d.ts(7888, 47): An argument for 'opts' was not provided.
This is because there is a synthax change in the new angular version. @ViewChild("password", { static: true }) password: ElementRef; @ViewChild("confirmPassword", { static: true }) confirmPassword: ElementRef; Add solution -
Shell/Bash 2021-08-26 10:50:02
install nvm ubuntu
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$... Add solution -
Python 2021-08-26 10:50:02
Convert the sklearn.dataset cancer to a DataFrame.
import numpy as np import pandas as pd from sklearn.datasets import load_breast_cancer cancer = load_breast_cancer() print cancer.keys() data = pd.DataFrame(cancer.data, columns=[cancer.feature_names]) data['Target'] = pd.Series(data=cancer.target, inde... Add solution -
Shell/Bash 2021-08-26 10:50:02
Add User to Sudoers in CentOS
Create a new user accoun: useradd username Set the user password: passwd username Add the new user to the sudo group: usermod -aG wheel username su - username, then run, echo "username ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username Add solution -
Shell/Bash 2021-08-26 10:50:02
how to add link to github readme
[I'm an inline-style link](https://www.google.com) [I'm an inline-style link with title](https://www.google.com "Google's Homepage") [I'm a reference-style link][Arbitrary case-insensitive reference text] [I'm a relative reference to a reposi... Add solution
Best helpers
Ranking is empty