Skip to content

Instantly share code, notes, and snippets.

View keehyun2's full-sized avatar
😪
zzzz

Keehyun Park keehyun2

😪
zzzz
View GitHub Profile
@keehyun2
keehyun2 / cloudSettings
Last active August 15, 2017 03:29
macbook 에서 올린 맥 환경정보, 맥에서만 수정가능
{"lastUpload":"2017-07-19T07:04:23.651Z","extensionVersion":"v2.8.2"}
@keehyun2
keehyun2 / create_table.sql
Last active July 30, 2017 05:39
mysql 계층 쿼리
CREATE TABLE 'temp_log' (
'idx' INT(12) NOT NULL AUTO_INCREMENT,
'_id' VARCHAR(4000) NULL DEFAULT NULL,
'_parent' VARCHAR(4000) NULL DEFAULT NULL,
'min' VARCHAR(4000) NULL DEFAULT NULL,
BEGIN
DECLARE _id INT;
DECLARE _parent INT;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET @id = NULL;
SET _parent = @id;
package kr.co.cyberline;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.concurrent.TimeUnit;
update
test_k a
left outer join(
select parent, floor(avg(progress)) as avg
from test_k
group by parent
) b on a.id = b.parent
set
a.progress = b.avg
where
SELECT test_function() AS id, @level AS level, @id, @loop_cnt
FROM (
SELECT @start_with := 0,
@id := 0,
@level := 0,
package kr.co.cyberline.grid;
import org.openqa.selenium.*;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.remote.BrowserType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.7.3"
}
#define _CRT_SECURE_NO_WARNINGS // scanf 보안 경고로 인한 컴파일 에러 방지
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d", &a, &b); // 표준 입력을 받아서 변수에 저장
printf("%d\n", a + b); // 변수의 내용을 출력
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
cout << a + b << endl;
}