Skip to content

Instantly share code, notes, and snippets.

View jeonguk's full-sized avatar
🎯
Focusing

jeonguk jeonguk

🎯
Focusing
View GitHub Profile
@jeonguk
jeonguk / ResponseMap.java
Last active August 29, 2015 14:16
Gist test
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
@Service
public class ResponseMap<T> {
public Map<String, Object> mapOK(List<T> items) {
@jeonguk
jeonguk / ScalaArray.scala
Created April 7, 2017 12:10
scala array test object
object ScalaArray {
def main(args: Array[String]): Unit = {
val arrayA = Array(1, 2, 3, 4, 4)
for(x <- arrayA)
println(x)
val arrayB = Array("a", "b", "c", "d")
for(x <- arrayB)
println(x)
}
@jeonguk
jeonguk / fibonacci .java
Created April 7, 2017 12:37
fibonacci test
public static List<Integer> fibonacci(int n) {
if (n < 0) {
throw new IllegalArgumentException("n must not be less than zero");
}
if (n == 0) {
return new ArrayList<Integer>();
}
if (n == 1) {
@jeonguk
jeonguk / bitbucket-pipelines.yml
Created September 14, 2017 07:01
npm node + gulp + bower + angularjs project bitbucket-pipeline
image: node:6.11.2
pipelines:
default:
- step:
caches:
- node
script:
- node --version
- npm --version
- npm install -g gulp
@jeonguk
jeonguk / bitbucket-pipelines.yml
Created September 14, 2017 07:03
Spring Boot Maven Project bitbucket-pipelines
image: maven:3-jdk-8
pipelines:
default:
- step:
script:
- mvn clean install
@jeonguk
jeonguk / txt
Created December 10, 2017 08:44
- git rm --cache
로그나 바이너리등 git로 관리가 불필요한 파일인데 .gitignore에 추가하는 것을 빼먹고 이미 commit하는 경우
working directory에는 남겨두고 staging area 에서만 삭제해야 하므로 git rm --cached 명령어로 해당 파일을 더 이상 추적하지 않게 하고
다시 commit을 해 준 다음,
$ git rm --cached log.txt
$ git commit -m 'untrack log.txt'
.gitignore에 해당 파일을 추가해 주고 .gitignore도 commit 해 주면 된다.
@jeonguk
jeonguk / docker-clear.bat
Created December 28, 2017 14:21 — forked from daredude/docker-clear.bat
delete all docker container and images on windows
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i
@jeonguk
jeonguk / gist:2afc098ab4e1bc927821e503d33079d5
Created November 29, 2017 06:07
Vertx - io.vertx.core.impl.BlockedThreadChecker [revolved]
https://thoeni.io/post/macos-sierra-java/
https://github.com/thoeni/inetTester
@jeonguk
jeonguk / gist:1f816e89fb8db8d61c4fa71e9c6afc70
Created January 9, 2018 08:31
github repository languages change
reference url :
- https://github.com/github/linguist#troubleshooting
@jeonguk
jeonguk / SimplParallelStreamFindWordLine.java
Created January 10, 2018 06:51
java 8 parallel stream file read
package com.jeonguk;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.Instant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;