What do you want to save?
Add Code snippet
New code examples
-
C# 2021-08-27 16:43:02
3d fps movement script
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(CharacterController))] public class SC_FPSController : MonoBehaviour { public float walkingSpeed = 7.5f; public float runningSpeed = 11.5f; ... Add solution -
Javascript 2021-08-27 16:33:02
speedtest-net node.js
{ type: 'testStart', progress: 0, timestamp: [Date], isp: 'Slower Web Inc', interface: { internalIp: '10.1.1.10', ... Add solution -
Javascript 2021-08-27 15:53:02
js create timestamp with 10 digits
// Divide the 13-digit timestamp by 1000 and then round to get a 10-digit timestamp number parseInt(+new Date()/1000); // Convert the 13-digit timestamp to a string and intercept the first 10 digits to get a 10-digit timestamp string (+new Date()).toS... Add solution -
Other 2021-08-27 15:43:02
how to format a number into hh:mm:ss in lua
function convert_to_time(tenths) local hh = (tenths // (60 * 60 * 10)) % 24 local mm = (tenths // (60 * 10)) % 60 local ss = (tenths // 10) % 60 local t = tenths % 10 return string.format("%02d:%02d:%02d.%01d", hh, mm, ss, t) end Add solution -
PHP 2021-08-27 14:46:02
carbon last day of month in timestamp
// first day of month (2021-01-01 00:00:00) Carbon::now()->firstOfMonth()->startOfDay() // first day of month in timestamp (1609459200) Carbon::now()->firstOfMonth()->startOfDay()->timestamp // last day of month (2021-01-31 23:59:59) Ca... Add solution -
Java 2021-08-27 13:45:01
Mergesort parallelization using Spark
import random import time from pyspark import SparkContext def execute_merge_sort(generated_list): start_time = time.time() sorted_list = merge_sort(generated_list) elapsed = time.time() - start_time print('Simple merge sort: %f sec' % el... Add solution -
C# 2021-08-27 12:19:02
convert table to Csharp class
declare @TableName sysname = 'TableName' declare @Result varchar(max) = 'public class ' + @TableName + ' {' select @Result = @Result + ' public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } ' from ( select replace(co... Add solution