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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<!-- Appenders --> | |
<appender name="ESTatStdout" class="org.apache.log4j.ConsoleAppender"> | |
<param name="Target" value="System.out" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%5p [%d] [%C:%M] - [%m]%n" /> | |
</layout> |
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 time | |
import sys | |
def elapsed_time(func): | |
def elsapse(*args, **kwargs): | |
start = time.time() | |
result = func(*args, **kwargs) | |
end = time.time() | |
print("============================================================================") |
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
class EmptyLinkedList(Exception): | |
pass | |
class LinkedList: | |
class Node: | |
def __init__(self, element, next_data=None): | |
self.__element__ = element | |
self.__next__ = next_data |
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
class EmptyLinkedList(Exception): | |
pass | |
class LinkedList: | |
class Node: | |
def __init__(self, element, next_data=None): | |
self.__element__ = element | |
self.__next__ = next_data |
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
class EmptyLinked(Exception): | |
pass | |
class MyLinkedList: | |
""" | |
배운거 바로 복습 | |
시작시간 19:30~20:00 | |
""" | |
class Node: |
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
$('.comment-area').on('click', '.user_block' , function (event) { | |
var user_id = this.getAttribute("data-user-id"); | |
if(confirm('해당 user를 차단하시겠어요?')) { | |
$.ajax({ | |
'url': '/blocks/user/', | |
'type': 'POST', | |
'data': {'user': user_id}, | |
success: function (data, text, xhr) { | |
if(xhr.status === 201) { |
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 com.yevgnenll.service.Impl; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.data.crossstore.ChangeSetPersister.NotFoundException; | |
import org.springframework.data.domain.Page; |
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 com.yevgnenll; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.security.authentication.AuthenticationProvider; | |
import org.springframework.security.authentication.BadCredentialsException; |
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 com.yevgnenll.controller; | |
import java.util.Map; | |
import javax.servlet.http.HttpServletRequest; | |
import org.springframework.boot.autoconfigure.web.ErrorAttributes; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.stereotype.Controller; |
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
/** | |
* Created by yevgnen on 2016-11-23. | |
*/ | |
public final class PhoneNumber { | |
private final short areaCode; | |
private final short prefix; | |
private final short lineNumber; | |
private volatile int hashCode; | |
public PhoneNumber(int areaCode, int prefix, int lineNumber){ |