What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-30 02:27:02
android add search to action bar
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { val menulayout = inflater.inflate(R.menu.yourmenu,menu) val searchManager = requireContext().getSystemService(Context.SEARCH_SERVICE) as SearchManager val se... Add solution -
-
Shell/Bash 2021-08-29 06:24:01
ubuntu install php 8
# Ubuntu 20.04 # List existing PHP packages dpkg -l | grep php | tee packages.txt #Add ondrej/php PPA sudo add-apt-repository ppa:ondrej/php # Press enter when prompted. sudo apt-get update #Install PHP 8.0 with CLI sudo apt install php8.0-common php8.0... Add solution -
Shell/Bash 2021-08-28 14:58:02
apt install php
# Update packages lists sudo apt update # Install Apache2 (on Ubuntu, mostly it's already installed) sudo apt install apache2 # Install the latest version of PHP and Apache wrapper sudo apt install php libapache2-mod-php # Install some important PHP ex... Add solution -
Python 2021-08-28 08:14:01
hello world code in flask
#Save the file as app.py from flask import Flask app=Flask(__name__) @app.route('/',methods=['GET','POST']) def Home(): return "Hello World" #Run on command Prompt following commands(Windows): # >>cd Desktop/ # >>cd FlaskFol... Add solution -
Javascript 2021-08-27 20:14:01
get browser id using javascript
agent = {browser:{name:null,version:null,v:null,userAgent:null,app:null,os:null},mobile:false,pointlock:false}; var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ''+parseFloat(naviga... Add solution -
Shell/Bash 2021-08-27 15:42:01
ubuntu install php
# Update packages lists sudo apt update # Install Apache2 (on Ubuntu, mostly it's already installed) sudo apt install apache2 # Install the latest version of PHP and Apache wrapper sudo apt install php libapache2-mod-php # Install some important PHP ex... Add solution