What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-27 16:32:01
python import filenames that match search
# Basic syntax: glob.glob('/directory/to/search/search_pattern') # Where the search_pattern follows the Unix path expansion rules # Example usage: # Say you have a directory containing the following files and you only # want to get the filenames ending ... Add solution -
SQL 2021-08-27 16:26:02
mysql user grant database
-- Grants / privileges list SELECT * FROM information_schema.user_privileges; SELECT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') FROM mysql.user; -- Grant a user /* ALL PRIVILEGES All privileges CREATE Create databases and tables ... 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 -
Javascript 2021-08-27 15:15:02
javascript wait for user to stop typing
/*this will delay the doneTyping function until 1 second after the user stops typing*/ var isUserTypingTimer; var doneTypingInterval = 1000;// wait for 1 second b4 sending requests function doneTyping () { //make request here } document.getElementBy... Add solution -
Shell/Bash 2021-08-27 14:55:01
install spotify ubuntu
#On ubuntu can just type following command: snap install spotify #if that not works you can also try to install the debian package #you will need for this 'curl' so install that first sudo apt install curl #after installing curl or you already have instal... Add solution