This file contains hidden or 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"?> | |
| <workflow-app xmlns="uri:oozie:workflow:0.4" name="Test workflow"> | |
| <start to="shellAction" /> | |
| <action name="shellAction"> | |
| <shell xmlns="uri:oozie:shell-action:0.1"> | |
| <job-tracker>${jobTracker}</job-tracker> | |
| <name-node>${nameNode}</name-node> | |
| <exec>test_script.sh</exec> | |
| <file>test_script.sh#test_script.sh</file> | |
| <capture-output /> |
This file contains hidden or 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 sdk.algo; | |
| import java.util.ArrayList; | |
| import java.util.LinkedList; | |
| import java.util.Queue; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 2261 | |
| * 경로 찾기 |
This file contains hidden or 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 | |
| if [ $# -ne 2 ]; then | |
| echo "script need 2 parameter" | |
| exit 1 | |
| fi | |
| echo "first parameter "$1", second parameter"$2 |
This file contains hidden or 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 sdk.algo.greedy; | |
| import java.util.Scanner; | |
| /** | |
| * 동전자판기 하 | |
| * | |
| * 가지고 있는 동전으로 구할 수 있는 최대 개수의 동전을 구하고 | |
| * 남은 동전이 최소의 동전 개수이다. | |
| * |
This file contains hidden or 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 sdk.algo; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 문제은행 | |
| * 그리디알고리즘 |
This file contains hidden or 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 sdk.algo.backtrack; | |
| import java.util.ArrayList; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 백트래킹1, 1824, 스도쿠 | |
| * | |
| * @author User | |
| * |
This file contains hidden or 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 sdk.algo.dynamic; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.Comparator; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 다이나믹, 1539 가장높은 탑 쌓기 |
This file contains hidden or 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 sdk.algo.backtrack; | |
| import java.util.Scanner; | |
| /** | |
| * 정올, 1840, 치즈 | |
| * 백트래킹 | |
| * | |
| * @author whitebeard | |
| * |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import urllib, simplejson | |
| request_url = 'http://date.jsontest.com' | |
| simplejson.load(urllib.urlopen(request_url)) |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| strStartTime = "Mon, 03 Oct 2016 23:21:48 GMT" | |
| strEndTime = "Mon, 03 Oct 2016 23:41:28 GMT" | |
| # 문자열을 datetime 객체로 변환 | |
| startTime = datetime.strptime(strStartTime, '%a, %d %b %Y %H:%M:%S %Z') | |
| endTime = datetime.strptime(strEndTime, '%a, %d %b %Y %H:%M:%S %Z') |