What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-24 23:25:02
character controller unity crouch
#pragma strict private var ch : CharacterController; private var startHeight : float; // initial height function Start() { ch = GetComponent(CharacterController); startHeight = ch.height; } function Update() { var newH : float = startHei... Add solution -
Javascript 2022-03-24 20:40:11
javascript format date yyyy-mm-dd hh:mm:ss to dd-mm-yyyy hh:mm am/pm
dateString = '2020-04-03 20:30:55'; function formatDate(dateString) { var allDate = dateString.split(' '); var thisDate = allDate[0].split('-'); var thisTime = allDate[1].split(':'); var newDate = [thisDate[2],thisDat... Add solution -
Javascript 2022-03-19 13:15:08
jquery change query string parameter value
var currentUrl = 'http://www.example.com/hello.png?w=100&h=100&bg=white'; var url = new URL(currentUrl); url.searchParams.set("w", "200"); // setting your param var newUrl = url.href; console.log(newUrl); Add solution -
-
Javascript 2022-03-16 21:05:03
my js
const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) var points = [40, 100, 1, 5, 25, 10]; points.sort((a,b) => a-b) var newArray = array.filter(function(item) { return ... Add solution -
Javascript 2022-03-16 17:25:31
js display only date
var newDate = new Date(oldDate.toDateString()); Add solution -
Other 2022-03-03 03:50:30
visual studio add a new form from a button
/// first go to projects, then click on "New Form" then click the option that says "Windows Form" /// Now just copypaste this code into the button you want to add the second form to. (Make sure that the name is the same var newForm =... Add solution -
Javascript 2022-03-01 07:55:16
appendchild element once if element present in js
//insert new Element after some reference Element function insertAfter(newElement, referenceElement) { referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling); } //example usage var newElement = document.createElement("... Add solution