페인트공이 첫날은 차선 페인트 작업을 300야드 칠함 둘째 날은 150야드 칠함 셋째 날은 30야드 칠함 첫 날은 어떻게 10배를 칠했는지 관리자가 묻자 저도 어쩔 수 없었습니다. 매일 페인트 통에서 점점 멀어지니까요
- "조엘 온 소프트웨어" by 조엘스폴스키(스택오버플로, 트렐로 창업자)
CREATE TABLE tablea (str varchar(8), PRIMARY KEY (str));
CREATE TABLE tableb (str varchar(8), PRIMARY KEY (str));
INSERT INTO tablea (str) VALUES ('A'), ('B'), ('C'), ('D');
INSERT INTO tableb (str) VALUES ('C'), ('D'), ('E'), ('F');
-- 합집합
CREATE DATABASE db_name ENCODING=utf8 lc_collate="C" template=template0;
-- Reconnect to `db_name` database
-- @see https://stackoverflow.com/questions/3949876/how-to-switch-databases-in-psql
CREATE EXTENSION postgis;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ...; | |
import org.springframework.stereotype.Component; | |
import javax.sql.DataSource; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.HashSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@EnableJpaRepositories("package.to.repository") | |
@EnableJpaAuditing(auditorAwareRef = "springSecurityAuditorAware") | |
@EnableTransactionManagement | |
public class DatabaseConfiguration { | |
private final Logger log = LoggerFactory.getLogger(DatabaseConfiguration.class); | |
@Bean | |
@ConfigurationProperties(prefix = "spring.datasource.hikari.master") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Elem { | |
public String key; | |
public String value; | |
public Elem (String key, String value) { | |
this.key = key; | |
this.value = value; | |
} | |
public boolean equals(Object o) { | |
Elem other = (Elem) o; | |
return key.equals(other.key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kata; | |
import org.junit.Test; | |
import java.util.*; | |
import static org.junit.Assert.*; | |
public class MutabilityTest { | |
@Test | |
public void isJavaMapImmutable() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @see https://github.com/madvirus/ddd-start | |
public enum OrderState { | |
PAYMENT_WAITING { | |
public boolean isShippingChangeable() { | |
return true; | |
} | |
}, PREPARING { | |
public boolean isShippingChangeable() { | |
return true; |
[2018-06-25 19:54:37] local.DEBUG: GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations:
CAfile: /tmp/cacert.pem
CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Users/appkr/meshkorea/korean-address-database-laravel/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187