What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-01 01:51:02
how to create a form without a submit button javascript
//you have to have the form tag in this format <form id="myFunction" onClick= { myFunction } > <input type="file" name="fileToUpload" id="myFunction" /> </form> //from there you would have to cr... Add solution -
Other 2021-09-01 01:39:02
notepad++ shortcut to comment out
To add a comment under any code on NOTEPAD++ first we have to save and define the programming or scripting file type. Like, save the file as xml, html etc. Once the file is saved in proper format you will be able to add a comment directly using the sho... Add solution -
Javascript 2021-09-01 00:09:03
accept header json
`Accept Header` can be used to ask the server to return different type of response format For example : `/api/xname` endpoint , support both xml and json as response type so we can add accept header `application/xml` to get xml result and `applicati... Add solution -
Other 2021-08-31 23:08:01
difference between doc and docx
1.DOC is the default extension of Word 2003 and older while DOCX is the default extension of Word 2007 and newer 2.Word 2003 and older cannot open DOCX files without the compatibility pack 3.DOCX is XML based while DOC is in a binary format 4.DOC is propr... Add solution -
Javascript 2021-08-31 18:10:01
javaScript disable submit button until form is fully validated
function fieldValidation() { var name = document.forms['RegForm']['Name'].value; var address = document.forms['RegForm']['Address'].value; var email = document.forms['RegForm']['EMail'].value; var password = document.forms['RegForm']['Password'].value; v... Add solution -
Other 2021-08-31 12:46:02
how to apply gradient in splunk dashboards
<format type="color" field="<column_name>"> <scale type="<color_scale_type>" [color scale option configurations] </scale> <colorPalette type="<color_palette_type>" [color ... Add solution -
Shell/Bash 2021-08-31 11:33:02
bash slurm view jobs from date
# Basic syntax: sacct -S yyyy-mm-dd -u username --format=User,JobID,Jobname%60,state,time,start,end,elapsed,CPUTime,MaxRss,MaxVMSize,MaxDiskRead,MaxDiskWrite,nnodes,ncpus,nodelist # Where: # - --format specifies the fields to return # - %60 specifies the ... Add solution -
Java 2021-08-30 17:32:01
java convert hex to binary method
/** * Method receives String hexadecimal value (of any range) and returns a String of a binary representation * hexadecimal string format (ex.:"2FFA") * Use of if-than-else statement inside for loop * Use the Integer.toBinaryString(int i) me... Add solution