What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-18 09:24:02
javascript countdown timer including days
function startTimer(duration, display) { var timer = duration, minutes, seconds; setInterval(function () { minutes = parseInt(timer / 60, 10); seconds = parseInt(timer % 60, 10); minutes = minutes < 10 ? "0" +... Add solution -
Html 2021-09-18 06:36:03
date range picker select date and several weeks
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></... Add solution -
Javascript 2021-09-18 02:43:03
javascript convert binary to text
function binaryAgent(str) { var newBin = str.split(" "); var binCode = []; for (i = 0; i < newBin.length; i++) { binCode.push(String.fromCharCode(parseInt(newBin[i], 2))); } return binCode.join(""); } binaryAgent('01000001 0... Add solution -
Other 2021-09-17 21:48:03
remove element from array android\
arr_fav = {"1","2","3"}; List<String> numlist = new ArrayList<String>(); for(int i= 0;i<arr_fav.length;i++) { if(current_id == Integer.parseInt(arr_fav[i])) { // No operation here } else { numlist... Add solution -
Javascript 2021-09-17 17:22:03
JS print all prime numbers
// program to print prime numbers between the two numbers // take input from the user const lowerNumber = parseInt(prompt('Enter lower number: ')); const higherNumber = parseInt(prompt('Enter higher number: ')); console.log(`The prime numbers between ${... Add solution -
Java 2021-09-17 06:03:04
java convert string to int array
import java.util.Arrays; public class StringToIntegerArray { public static void main(String args[]) { String [] str = {"123", "345", "437", "894"}; int size = str.length; int [] arr = new int [s... Add solution -
Javascript 2021-09-16 12:07:01
javascript months array
'use strict'; (function(d){ var mL = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; var mS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'N... Add solution -
Javascript 2021-09-16 11:12:01
web3.js example
// Here's how we would access our contract: var abi = /* abi generated by the compiler */ var ZombieFactoryContract = web3.eth.contract(abi) var contractAddress = /* our contract address on Ethereum after deploying */ var ZombieFactory = ZombieFactoryCont... Add solution