What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-02 10:36:02
Duplicate entry Exception
import java.lang.Exception try: #Your insert statement here except Exception, e: # Catches any python errors except java.lang.Exception, e: #SQL Integrity errors come as Java errors so you need java.lang.Exception if "Duplicate entry&quo... Add solution -
Html 2022-01-30 22:55:24
change default select option color
/*with a little bit of styling and javascript, you can have a select box with coloured options*/ /*Note that size attribute = 2 or greater plays an important role here*/ <style> select option:checked { background: #ff9500 -webkit-linear-gradient(b... Add solution -
Javascript 2022-01-30 16:36:09
javascript template example
Nunjucks. Nunjucks is a high-performant, full-featured JavaScript templating engine, inspired by the Jinja2 templating engine for Python. ... Pug. Pug was formerly known as Jade but the dev team had to rename it when it turned out that Jade was a register... Add solution -
Other 2022-01-22 10:31:02
String.toCharArray()
// String toCharArray() method example or string to char array java public class StringToCharArrayDemo { public static void main(String[] args) { String strInput = new String("Flower Brackets"); // using toCharArray() method ja... Add solution -
Other 2022-01-22 01:35:36
pojo api testing
POJO (Plain Old Java Object), (usually used to represent data) The POJO Class usually have encapsulated fields : optionally constructors , toString Serialization: POJO to JSON (or string, byte array) when we MAP a Java object to API JSON format (Java ... Add solution -
CSS 2021-11-21 10:31:14
How to change selection color
/*with a little bit of styling and javascript, you can have a select box with coloured options*/ /*Note that size attribute = 2 or greater plays an important role here*/ <style> select option:checked { background: #ff9500 -webkit-linear-gradient(b... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5