Skip to content

Instantly share code, notes, and snippets.

View arahansa's full-sized avatar

arahansa arahansa

  • Seoul, South Korea
View GitHub Profile
@arahansa
arahansa / CodeCoastColorChanger.js
Last active January 5, 2017 17:31
변환과정
/**
* Created by jarvis on 2016. 12. 30..
이렇게 하니 최초한번 색깔이 바뀌게 잘 안바뀜..
*/
var CodeCoast = CodeCoast || {}
CodeCoast.AjaxReceiver = function(url){
this.url = url;
}
@arahansa
arahansa / 테스트 단축키들.txt
Created October 23, 2016 10:15
intelliJ + MAC 환경에서의 단축키들
단축키들
테스트 메서드 실행 = Ctrl + T
파일스트럭쳐 - fn + command + F12
서라운드 위드 ( 트라이 캐치 ) = 알트 + 커맨드 T
세터 등의 제네레이터 = 커맨드 + N
베스트 댓글 첫번째 단락 :: 자바빈은 Sun 에 의해 정의된 자바빈즈관습을 따르는 클래스입니다. 위키피디아는 자바빈즈가 무엇인지에 대해서 다음과 같은 좋은 요약을 가지고 있죠..
자바빈은 자바를 위한 재사용가능한 소프트웨어 컴포넌트로, 시각적인 빌더툴에서 생성가능합니다. (역주: 자바빈이 빌더툴에서 비롯된 ? ) 실제로 이 클래스들은 특정 컨벤션을 따르는 자바 프로그래밍언어로 쓰여졌습니다. 자바빈은 많은 객체들을 단일 객체로 캡슐화(the bean)하여서 여러개의 독립적인 객체보다는 하나의 단일 객체로 전달되게 하여집니다. 자바빈은 serialize할 수 있는 자바 객체로 nullary (?) 생성자를 가지고 있으며 게터세터 메서드를 사용하여 접근가능한 프로퍼티를 가지고 있습니다.
자바빈클래스로 기능하기 위해, 객체클래스는 메서드 네이밍이나 생성자, 행위에 관련된 컨벤션들을 따라야하는데요.. 이러한 컨벤션들은 자바빈을 결합하고(?), 대체하고, 재사용하고 사용할 수 있는 도구들을 가질 수 있게 합니다.
요구되는 컨벤션은
:: 클래스는 퍼블릭 기본 생성자를 가지고 있어야 하며 이것은 편집하거나 사용하는 프레임워크내에서 손쉽게인스턴스화하게 해줍니다.
package sample.springboot.mybatis.xmlconfig.service;
import java.util.Date;
/**
* Sample DTO
*
* @author sbcoba
*
*/
npm start - 컴파일러와 서버를 동시에 실행시키고 둘다 와치 모드로 킨다.
npm run tsc - 타입 스크립트 컴파일러를 한번 돌린다.
npm run tsc:w - 와치모드로 타입 스크립트 컴파일러를 돌린다.
npm run lite - liteserver를 돌린다.
npm run typings - typings도구를 별도로 실행
npm run postinstall 패키지 설치 후에 npm 이 자동적으로 호출하게됨.. typings.json에 정의된 타입스크립트 정의를 설치한다.
====
모든 앵귤러앱은 기본적으로 하나의 루트 컴포넌트를 가진다. 관습적으로 AppComponent
기본적으로
@arahansa
arahansa / 죽을수있는부트.java
Last active August 22, 2016 16:29
죽을수 있는 스프링부트ㅋㅋ
@SpringBootApplication
public class DeathableSpringBootApplication {
public static void main(String[] args) {
SpringApplication.run(DeathableSpringBootApplication.class, args);
}
}
@RestController
public class RestCommonDeleteController {
@Autowired
private AdminProductService productService;
@Autowired
private BlogArticleService blogArticleService;
@Autowired
private SCInfoService scInfoService;
@Autowired
private IntroService introService;
@arahansa
arahansa / 참고.sh
Created August 21, 2016 07:44
ec2에 자바+톰캣 설치
# 아마존 자바8 설치. 아마존 리눅스
# http://blog.de-gouveia.eu/2014/05/21/java-8-jdk-linux-installation-in-ec2-linux-instance/
# http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/
# tomcat8http://tecadmin.net/install-tomcat-8-on-centos-rhel-and-ubuntu/
# http://tecadmin.net/install-tomcat-8-on-centos-rhel-and-ubuntu/
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz"
tar xzf jdk-8u91-linux-x64.tar.gz
#! /bin/bash
# check 7100 port
pidNumber=$(lsof -i :7100 | grep java | awk '{print $2}' )
if [ ! -z "$pidNumber" ];then
echo "already ** is operating. please command ./kill_7100Port_****.sh"
exit
fi
# check executeFile
if [ -z "$1" ];then
@arahansa
arahansa / animal.java
Created August 2, 2016 10:43
enum, 이늄
public enum Animal {
CAT {
public String makeNoise() { return "MEOW!"; }
},
DOG{
public String makeNoise() { return "WOOF!"; }
},
HORSE{
public String makeNoise() { return "NEIGH!"; }
};