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;
}