What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-02 15:20:25
initialize a repo and push to github
git init git add . git commit -m "First commit" git remote add origin <remote repository URL> git remote -v git branch -M main git push -u origin main 1- # Create a new repository on GitHub. To avoid errors, do not initialize the new repo... Add solution -
Go 2022-03-02 10:40:01
bcrypt golang
package util import ( "github.com/sirupsen/logrus" "golang.org/x/crypto/bcrypt" ) func HashPassword(password string) string { pw := []byte(password) result, err := bcrypt.GenerateFromPassword(pw, bcrypt.DefaultCost) if err != ni... Add solution -
Other 2022-03-02 09:40:34
add wordpress to heroku
//Docs https://github.com/dzuelke/wordpress-12factor //Steps 1- git clone -o upstream https://github.com/dzuelke/wordpress-12factor 2- cd wordpress-12factor 3- composer install 4- heroku apps:create websiteName //Add your addons 5- heroku addons:create j... Add solution -
Other 2022-02-27 12:45:01
[error:flutter/lib/ui/ui_dart_state.cc(177)] unhandled exception: missingpluginexception(no implementation found for method share on channel plugins.flutter.io/share)
I'm having the same problem, just tried to add web support for an existing app which uses package_info, it still works on Android and iOS but i can't run it on web. Am i correct to just assume that this plugin doesn't support flutter web or it should be ... Add solution -
Javascript 2022-02-26 07:20:20
mobx react hooks async
mobx.configure({ enforceActions: "observed" }) class Store { @observable githubProjects = [] @observable state = "pending" // "pending" / "done" / "error" @action fetchProjects() { ... Add solution