Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View chrisji's full-sized avatar

Chris Inskip chrisji

View GitHub Profile
@CraigChilds94
CraigChilds94 / README.md
Created June 11, 2018 16:10
Running Twofishes with Docker

Place the Docker Compose config file in the root of a project folder.

Ensure you've got your Docker Machine setup to use a large amount of memory, try 8GB.

Then run docker-compose up.

Once you've seen the serving http/json on port 8081 message come up, run curl http://0.0.0.0:8081/\?query\=Twatt,Scotland

@ankushs92
ankushs92 / LocalDateTimeJPAConverter.java
Created April 16, 2016 17:12
Converting java.sql.timestamp to LocalDateTime and vice versa
import java.sql.Timestamp;
import java.time.LocalDateTime;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
@Converter(autoApply = true)
public class LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> {
@Override
public Timestamp convertToDatabaseColumn(LocalDateTime ldt) {