What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-03 06:30:02
remove deleted remote branches locally
git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; done Add solution -
Swift 2021-09-02 21:40:01
swift stirng to date
let isoDate = "2016-04-14T10:44:00+0000" let dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US_POSIX") // set locale to reliable US_POSIX dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ" let... Add solution -
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