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
/** Chapter 01 **/ | |
/* | |
문제에 오역이 좀 있다. 아래에서 문제 자체를 검색해서 확인해 볼 것. | |
Java 7 이상에서 실행할 것. | |
https://www.google.co.kr/search?client=ubuntu&channel=fs&q=scala+for+the+impatient+exercise&ie=utf-8&oe=utf-8&gws_rd=cr&redir_esc=&ei=oqvrUb-1B6LwiQfjk4GQBg | |
Scala Doc : http://www.scala-lang.org/api/current/index.html | |
*/ |
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
@echo off | |
REM https://www.makeuseof.com/tag/access-group-policy-editor-even-windows-home-settings-try/ | |
pushd "%~dp0" | |
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt | |
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt | |
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
pause |
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
" :vim set fileencoding=utf8 | |
" 기본설정 | |
" Windows Installation | |
" Windows에서는 closetag 를 심볼릭링크해줘야한다. 이 파일에서 closetag로 검색해볼것. | |
" Windows 에서는 $HOME\vimfiles 아래에 vimrc 로 설정파일을 두고 그 외 플러그인 디렉토리도 둔다. 즉 ~/.vim = $HOME\vimfiles | |
" cd $HOME\vimfiles | |
" curl -fLo autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" mklink vimrc ..\tmp\vim\config\.vimrc | |
" HOME directory로 이동해서 | |
" mklink vimrc_pc ..\tmp\vim\config\.vimrc_pc_win |
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
// ==UserScript== | |
// @name kwonnam wiki accesskey changer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author KwonNam Son | |
// @match https://kwonnam.pe.kr/wiki/* | |
// @grant none | |
// ==/UserScript== |
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
#!/bin/bash | |
# Gnome 3 based workspace changer | |
# only works with gnome 3 vertical workspace | |
# workspace-switcher.sh Up | |
# workspace-switcher.sh Down | |
# | |
# ref : https://www.artificialworlds.net/blog/2011/03/04/switching-workspace-in-gnome-via-the-command-line/ | |
CMD="$1" |
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
#!/bin/bash | |
# workspace-switcher.sh [num-of-workspace] [Down/Up] | |
CMD="$2" | |
NUM_WORKSPACES=$1 | |
CURRENT_WS=`wmctrl -d | grep \* | cut -d " " -f 1` | |
MOVE_UP="-1" | |
MOVE_DOWN="+1" |
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
@Slf4j | |
public class MdcLoggingInterceptor implements HandlerInterceptor { | |
public static final String REQUEST_URL_MDC_KEY = "URL"; | |
public static final String REQUEST_CONTROLLER_MDC_KEY = "Controller"; | |
@Override | |
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { | |
if (handler instanceof HandlerMethod) { | |
String fullUrl = request.getRequestURI() + Optional.ofNullable(request.getQueryString()).map(qs -> "?" + qs).orElse(""); |
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
import com.intellij.database.model.DasTable | |
import com.intellij.database.util.Case | |
import com.intellij.database.util.DasUtil | |
/* | |
IntelliJ Database Extension script for Java 8 or Later JPA entity mapping generation. | |
*/ | |
/* | |
* Available context bindings: |
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
// 3.11 이후 버전에서 package가 변경되었으므로 GenerationTool과 Configuration 의 package를 다시 확인해야 한다! | |
buildscript { | |
dependencies { | |
classpath 'org.jooq:jooq-codegen:3.11.4' | |
classpath "mysql:mysql-connector-java:${mySqlDriverVersion}" | |
} | |
} | |
ext { | |
jooqSourceDir = "src/generated/jooq" |
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
import org.slf4j.Logger | |
import org.slf4j.LoggerFactory | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest | |
import org.springframework.http.MediaType | |
import org.springframework.test.web.servlet.MockMvc | |
import org.springframework.test.web.servlet.MvcResult | |
import org.springframework.web.bind.annotation.* | |
import spock.lang.Specification |
NewerOlder