What do you want to save?
Add Code snippet
New code examples
-
Swift 2021-09-03 08:40:04
hex color extension swift
//https://stackoverflow.com/questions/24263007/how-to-use-hex-color-values var color1 = hexStringToUIColor("#d3d3d3") //Create Func func hexStringToUIColor (hex:String) -> UIColor { var cString:String = hex.trimmingCharacters(in: .whites... Add solution -
C++ 2021-09-03 02:01:02
error: 'std::high_resolution_clock' has not been declared
#include <chrono> using std::chrono::high_resolution_clock; using std::chrono::microseconds; using std::chrono::duration_cast; auto start = high_resolution_clock::now(); rd(n); auto stop = high_resolution_clock::now(); auto duration = duration_cast... Add solution -
Javascript 2021-09-01 16:07:01
how to make a if loop happen repeat once
//this is a long example but it workes for me //it makes the "code" happen as soon as criteria1 is true then it starts a timer //until it can happen agen if ( criteria1 ) { this.switch = true } else { this.switch = false } ... Add solution -
C# 2021-08-31 22:30:01
Resumable file download in MVC Core
using System.IO; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; namespace Sample.Controllers { public class HomeController : Controller { [HttpHead] [HttpGet] public void Download() { // File to download FileInf... Add solution