What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-11 01:53:07
asp net web api register user identityserver4
public void ConfigureServices(IServiceCollection services) { ... services.AddDbContext<AppIdentityDbContext> (options => options.UseSqlServer(Configuration.GetConnectionString("Default"))); services.AddIdentity<AppUser, Identi... Add solution -
Java 2021-11-09 01:29:16
functional interface java
// interface in java example interface Vehicle { public void accelerate(); } class BMW implements Vehicle { public void accelerate() { System.out.println("BMW accelerating..."); } } public class InterfaceDemo { public static... Add solution -
Kotlin 2021-11-03 23:46:11
format string kotlin
val str1 = String.format("%d", 404) // Integer value val str2 = String.format("%s", "Mehmet") // String value val str3 = String.format("%f", 404.00) // Float value val str4 = String.format("%x", ... Add solution -
SQL 2021-11-02 15:31:21
c# sql select
SqlConnection conn = new SqlConnection("Data Source=;Initial Catalog=;Persist Security Info=True;User ID=;Password="); conn.Open(); SqlCommand command = new SqlCommand("Select id from [table1] where name=@zip", conn); command.Paramete... Add solution -
Java 2021-11-02 00:05:13
swapping with two variables in java
public class Exercise15 { public static void main(String[] args) { // int, double, float int a, b; a = 15; b = 27; System.out.println("Before swapping : a, b = "+a+", "+ + b); a = a + b; b = a - b; a = a - b... Add solution -
Javascript 2021-10-13 19:14:08
how ot get browser is safari in chrome
// Opera 8.0+ var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; // Firefox 1.0+ var isFirefox = typeof InstallTrigger !== 'undefined'; // Safari 3.0+ "[object HTMLElementConstruc... Add solution -
Javascript 2021-10-12 15:43:03
js set operations union intersection
// Union (a ∪ b) let a = new Set([1,2,3]); let b = new Set([4,3,2]); let union = new Set([...a, ...b]); // {1,2,3,4} // Intersection (a ∩ b) let a = new Set([1,2,3]); let b = new Set([4,3,2]); let intersection = new Set( [...a].filter(x =... Add solution -
C# 2021-10-08 20:45:09
randomly generate objects in unity
/* How to randomly generate unity objects in the scene. Watch this video by Blackthornprod on YouTube: 'RANDOM MAP GENERATOR - EASY UNITY TUTORIAL' https://www.youtube.com/watch?v=D4EOgZyNk-k&list=PLVAEGKvcbdfRiaRqY03T-oUMGr-Z-5Cyl&index=12&t... Add solution
Best helpers
Ranking is empty