What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-29 17:34:02
magento 2 gulp
$ composer require --dev bobmotor/magento-2-gulp Add solution -
Shell/Bash 2021-08-29 16:41:01
bash remove duplicate lines from a file
# Basic syntax: sort input_file | uniq --unique # Sort the file first because uniq requires a sorted file to work. Uniq # then eliminates all duplicated lines in the file, keeping one instance # of each duplicated line # Note, this doesn't return only no... Add solution -
Html 2021-08-29 12:47:02
html select required
<select name="color" id="color" required> <option value="" selected disabled hidden>Choose color...</option> <option value="R">Red</option> <option value="B">Bl... Add solution -
PHP 2021-08-29 11:44:02
Differentiate PHP include and require statement
The only difference is — the include() statement will only generate a PHP warning but allow script execution to continue if the file to be included can't be found, whereas the require() statement will generate a fatal error and stops the script exec... Add solution -
Shell/Bash 2021-08-29 11:20:01
bash return unique lines starting at nth field
# Basic syntax: uniq -f number input_file # Where number specifies the number of fields/columns to ignore from left # to right when doing comparisons to return unique lines # Note, uniq requires a sorted input. You can sort a file based on # specific f... Add solution -
Shell/Bash 2021-08-29 10:37:03
change bash prompt
# syntax: # export PS1='<Format required>' # example: export PS1='\[\033[1;33m\]\u@\[\e[0;36m\]\h:\[\e[1;32m\]$(pwd)\[\e[1;32m\]> \[\033[1;37m\]' #=========================================================================================== # +... Add solution -
C# 2021-08-29 10:35:02
Camera Fit: Screen Handler free download
[ExecuteInEditMode] [RequireComponent(typeof(Camera))] public class MatchWidth : MonoBehaviour { // Set this to the in-world distance between the left & right edges of your scene. public float sceneWidth = 10; Camera _camera; void St... Add solution -
Javascript 2021-08-29 09:42:01
Writing files in Node.js
const fs = require('fs'); fs.writeFile("/tmp/test", "Hey there!", function(err) { if(err) { return console.log(err); } console.log("The file was saved!"); }); // Or fs.writeFileSync('/tmp/test-sync', 'H... Add solution -
Shell/Bash 2021-08-29 09:27:02
setup puppeteer centos7
curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash - yum install nodejs 1 2 3 4 5 6 7 curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash - yum install nodejs Step 2 :- Install Puppeteer In CentOS 7 npm i pupeteer 1 npm... Add solution