What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-28 00:00:02
second largest number in array javascript
var secondMax = function (){ var arr = [20, 120, 111, 215, 54, 78]; // use int arrays var max = Math.max.apply(null, arr); // get the max of the array arr.splice(arr.indexOf(max), 1); // remove max from the array return Math.max.apply(nul... Add solution -
Javascript 2021-08-27 23:47:02
javascript submit a form with id
// 1. Acquire a reference to our <form>. // This can also be done by setting <form name="blub" id="myAwsomeForm">: // var form = document.forms.blub; var form = document.getElementById("myAwsomeForm"); ... Add solution -
Swift 2021-08-27 23:22:01
set root view controller ios 13
static func redirectToMainNavRVC(currentVC: UIViewController){ let appDelegate = UIApplication.shared.delegate as! AppDelegate let vc = UIStoryboard(name: appDelegate.storyBoardName, bundle: nil).instantiateViewController(withIdentifier: &... Add solution -
Javascript 2021-08-27 23:15:02
auto clicker javascript
//AUTO CLICKER 1.0 //Created by Catking var button = document.createElement("button"); button.innerHTML = "Start Auto Clicker" var body = document.getElementsByTagName("body")[0]; body.appendChild(button); button.addEventList... Add solution -
Html 2021-08-27 23:08:02
html button that hide and show
<button onclick="toggleText()">button</button> <p id="Myid">Text</p> <script> function toggleText(){ var x = document.getElementById("Myid"); if (x.style.display === "none") { x... Add solution -
PHP 2021-08-27 22:36:01
how to search pdf in folder using php
>"); if (is_array($a_filter)){ $j++; $a_chunks[$j]["filter"] = $a_filter[0]; $a_data = getDataArray($obj,"stream\r\n","endstream"); if (is_array($a_data)){ $a_chunks[$j]["data"] = substr($... Add solution -
Python 2021-08-27 22:15:01
godot code for movement
extends KinematicBody2D var velocity = Vector2.ZERO func _physics_process(delta): if Input. is_action_pressed("ui_right"): position.x += 4 elif Input. is_action_pressed("ui_left"): position.x -= 4 elif Input. is_action_pressed... Add solution