What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-29 04:03:12
using automapper without dependency injection
public static class MapperWrapper { private const string InvalidOperationMessage = "Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances through a container or otherwise, make sure you... Add solution -
Java 2021-10-29 03:26:06
java sql connection example
import java.sql.*; class MySQLConnection{ public static final String DBNAME = "name_of_the_database"; // Like "testDB" /** JDBC driver name and database URL */ public static final String JDBC_DRIVER = "com.mysql.jdbc.Driver&qu... Add solution -
Shell/Bash 2021-10-28 23:24:19
dockerfile for vuejs
#Dockerfile for VueJS # Choose the Image which has Node installed already FROM node:lts-alpine # install simple http server for serving static content RUN npm install -g http-server # make the 'app' folder the current working directory WORKDIR /app # c... Add solution -
C# 2021-10-28 04:35:14
use newtonsoft json to clone object
// using Newtonsoft.Json; // This sample is from the StackOverflow response (source cited) with // a couple of modifications public static T Clone<T>(T source) { var jsonSettings = new Newtonsoft.Json.JsonSerializerSettings() { // Use this ... Add solution -
Java 2021-10-28 03:54:13
how to convert an image to matrix in java
import java.awt.Color; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class ImageUtil { public static Color[][] loadPixelsFromFile(File file) throws IOException { B... Add solution -
Other 2021-10-25 22:49:04
Java String to ByteBuffer conversion
public static Charset charset = Charset.forName("UTF-8"); public static CharsetEncoder encoder = charset.newEncoder(); public static CharsetDecoder decoder = charset.newDecoder(); public static ByteBuffer str_to_bb(String msg){ try{ retur... Add solution -
Other 2021-10-24 21:37:10
poi color pallette
import java.io.FileOutputStream; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.FillPatternType; import org.apache.poi.ss.usermodel.IndexedColors; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.xssf.usermodel.X... Add solution
Best helpers
Eric Vought
+5
James Song
+5
Fishbean
+5
Mai Rose
+5
Bunch
+5
Bob R Bogle
+5
Gruppetto
+5
Katboodle
+5
Vidhi Patel
+5
Buttercup
+5
Bin Nguyễn
+5