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
input { | |
jdbc { | |
jdbc_connection_string => "jdbc:postgresql://IP:PORT/DB_NAME?useTimezone=true&useLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf8" | |
jdbc_user => "atlas" | |
jdbc_passwor => "atlaspw" | |
jdbc_validate_connection => true | |
jdbc_driver_library => "DRIVER_PATH" | |
jdbc_driver_class => "org.postgresql.Driver" | |
schedule => "* * * * *" | |
statement => "SELECT region_id, region_type, country_code, country_code3, continent_code, source_from, |
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
input { | |
jdbc { | |
jdbc_connection_string => "jdbc:postgresql://IP:PORT/DB_NAME?useTimezone=true&useLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf8" | |
jdbc_user => "atlas" | |
jdbc_passwor => "atlaspw" | |
jdbc_validate_connection => true | |
jdbc_driver_library => "DRIVER_PATH" | |
jdbc_driver_class => "org.postgresql.Driver" | |
schedule => "* * * * *" | |
statement => "SELECT region_id, region_type, country_code, country_code3, continent_code, source_from, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Leaflet tutorial</title> | |
</head> | |
<body> | |
<script | |
src="https://code.jquery.com/jquery-2.2.4.js" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Leaflet tutorial</title> | |
</head> | |
<body> | |
<script | |
src="https://code.jquery.com/jquery-2.2.4.js" |
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 requests | |
from lxml import etree | |
import wikipedia | |
import csv | |
import wikipediaapi | |
wiki_en = wikipediaapi.Wikipedia('en') | |
wiki_en = wikipediaapi.Wikipedia( | |
language='en', | |
extract_format=wikipediaapi.ExtractFormat.WIKI |
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
const getTodos = (id) => { | |
return new Promise((resolve, reject) => { | |
$.getJSON(`https://jsonplaceholder.typicode.com/todos/${id}`, (data) => { | |
resolve(data); | |
console.log(data); | |
}); | |
}); | |
} | |
Promise.all([ |
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
const getTodos = (id) => { | |
return new Promise((resolve, reject) => { | |
$.getJSON(`https://jsonplaceholder.typicode.com/todos/${id}`, (data) => { | |
resolve(data); | |
console.log(data); | |
}); | |
}); | |
} | |
// // 아래처럼 하면 순서보장 x |
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
const getTodos = (id) => { | |
return new Promise((resolve, reject) => { | |
$.getJSON(`https://jsonplaceholder.typicode.com/todos/${id}`, (data) => { | |
resolve(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
// const todosPromise = new Promise((resolve, reject) => { | |
// const condition = Math.random() > 0.5; //true or false | |
// return condition ? resolve('성공했어요') : reject('실패했어용'); | |
// }); | |
// // console.log(todosPromise); | |
// todosPromise.then((data) => { | |
// console.log(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
$.getJSON('https://jsonplaceholder.typicode.com/todos/1', (data) => { | |
console.log(data); | |
}); | |
const getTodos = (id, onSuccess) => { | |
$.getJSON(`https://jsonplaceholder.typicode.com/todos/${id}`, (data) => { | |
// console.log(data); | |
onSuccess(data); | |
}); |