What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-24 07:24:06
carry forward session storage one page to another page in javascript
// transfers sessionStorage from one tab to another var sessionStorage_transfer = function(event) { if(!event) { event = window.event; } // ie suq if(!event.newValue) return; // do nothing if no value to work with if (event.key == 'getSessi... Add solution -
VBA 2021-10-21 07:06:05
vbscript check if string contains
Dim MyString = "Hello world!" 'InStr returns the position of the first occurrence of the specified string within another. 'So checking if the number returned is higher then 0 means checking if its found If InStr(MyString, "world") >... Add solution -
Shell/Bash 2021-10-19 05:10:10
Push to SQL Server
</pre> # Local Variables $base_path = "C:\Temp" $local_repo_name = "Blitz" $local_repo_directory = $base_path + "\" + $local_repo_name # Remote Variables $remote_repo_url = "https://github.com/BrentOzarULTD/... Add solution -
Python 2021-10-17 15:11:19
python store data in file
file = open("text.txt", "w") file.write("Your text goes here") file.close() 'r' open for reading (default) 'w' open for writing, truncating the file first 'x' open for exclusive creation, failing if the file already exists... Add solution -
Other 2021-10-12 18:52:04
dragging sidebar implementation
// styles dragger: { width: '5px', cursor: 'ew-resize', padding: '4px 0 0', borderTop: '1px solid #ddd', position: 'absolute', top: 0, left: 0, bottom: 0, zIndex: '100', backgroundColor: '#f4f7f9' } ... state = { isResizing: false,... Add solution -
Java 2021-10-12 10:09:02
checking file writable java
import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; public class FilesExample { public static void main(String args[]) { //Creating a Path object Path path = Paths.get(&... Add solution -
Html 2021-10-11 21:26:04
strftime documentation
Directive Meaning Example Notes %a Weekday as locale’s abbreviated name. Sun, Mon, …, Sat (en_US); So, Mo, …, Sa (de_DE) (1) %A Weekday as locale’s full name. Sunday, Monday, …, Saturday (en_US); Sonntag, Montag, ... Add solution -
Javascript 2021-10-11 08:27:07
compare boolean in javascript
//to compare a boolean: // signs to use - // "<" - Less than. // ">" - Greater than // "==" - Equal to if (13>7) // This is comparing if 13 is greater than 7 or not. if (2<7) // This is comparing if 2 is les... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5