What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 12:20:02
js
<script type="text/javascript"></script> Add solution -
Other 2022-03-27 08:20:18
basic java interview questions
There are many questions that can be made to test your java knowledge, like the ones below: Explain JDK, JRE and JVM? Explain public static void main(String args[]) in Java Why Java is platform independent? Why Java is not 100% Object-oriented? What are ... Add solution -
Javascript 2022-03-27 07:35:02
compress string javascript
function en(c){var x='charCodeAt',b,e={},f=c.split(""),d=[],a=f[0],g=256;for(b=1;b<f.length;b++)c=f[b],null!=e[a+c]?a+=c:(d.push(1<a.length?e[a]:a[x](0)),e[a+c]=g,g++,a=c);d.push(1<a.length?e[a]:a[x](0));for(b=0;b<d.length;b++)d[b]=S... Add solution -
Java 2022-03-26 13:40:11
generate all prime number less than n java
/** Author: Jeffrey Huang As far as I know this is almost the fastest method in java for generating prime numbers less than n. A way to make it faster would be to implement Math.sqrt(i) instead of i/2. I don't know if you could implement sieve of eratost... Add solution -
Java 2022-03-25 07:40:02
convert base64 to pdf in java
import java.io.File; import java.io.FileOutputStream; import java.util.Base64; class Base64DecodePdf { public static void main(String[] args) { File file = new File("./test.pdf"); try ( FileOutputStream fos = new FileOutputStream(fil... Add solution -
Javascript 2022-03-25 00:15:26
javascript text auto writing
/* Creating a Typing Effect ----------------------------- 1) Add HTML: */ <p id="demo"></p> <button onclick="typeWriter()">Click me</button> /* 2) Add JavaScript: */ var i = 0; var txt = 'Lorem ipsum typing e... Add solution -
PHP 2022-03-24 21:50:46
PHP debugbar - Quick Start
<?php use DebugBar\StandardDebugBar; $debugbar = new StandardDebugBar(); $debugbarRenderer = $debugbar->getJavascriptRenderer(); $debugbar["messages"]->addMessage("hello world!"); ?> <html> <head> ... Add solution -
Javascript 2022-03-24 21:35:23
check web3 metamask disconnect
// The following code snippet is in React // but you can use the window.ethereum.on("accountsChanged") event // in regular JavaScript // Note: I believe window.ethereum is only available if using Metamask // as your web3 provider useEffect((... Add solution
Best helpers
+10
+5
+5
+5
+5
+5
+5
+5
+5
+5