Programing
-
[typescript] Start express with typescriptPrograming/javascript 2019. 12. 6. 16:43
1.Make a PROJECT_DIRECTORY $ mkdir plantonline-cron-service && cd $_ 2. Make package.json $ npm init -y // package.json { "name": "plantonline-cron-service", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" } 3. Install modules $ npm install -S express $ npm install -D t..
-
[data statistics] Data distributionPrograming/python 2019. 11. 26. 14:10
content: https://datascienceschool.net/view-notebook/69b85ec9afb7415d8da4c8cd5e46d22e/ Data Science School Data Science School is an open space! datascienceschool.net lib: Matplotlib Matplotlib: Python plotting — Matplotlib 3.1.1 documentation Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across..
-
[javascript] histogram modulesPrograming/javascript 2019. 11. 26. 14:01
1.Plotly https://github.com/plotly/plotly.js plotly/plotly.js Open-source JavaScript charting library behind Plotly and Dash - plotly/plotly.js github.com https://plot.ly/javascript/histograms/ Histograms How to make a D3.js-based histogram in JavaScript. Seven examples of colored, horizontal, and normal histogram bar charts. plot.ly 2.d3 https://github.com/d3/d3 d3/d3 Bring data to life with SV..
-
[typescript] histogram algorithmPrograming/javascript 2019. 11. 26. 13:54
LINK const histogram = (data: any, size: number = 1) => { const length = data.length; let min = data[0]; let max = data[1]; data.forEach((item: number) => { if (item max) max = item; }); const bins = Math.ceil((max - min + 1) / size); const histogram = new Array(bins); for (let i = 0; i < bins; i++) histogram[i] = 0; for (let i = 0; i < length; i++) histogram[M..
-
[node] Excel file exportPrograming/javascript 2019. 11. 21. 17:52
I need to get the excel data which is the result of db query. And I've got it successfully by using 'node-excel-export' module. [Source Code] main.js const exportExcel = require('./excel_export').exportExcel; ... function run() { ... const qData = getLogs();// QUERY exportExcel(qData); ... } run(); excel_export.js const excel = require('node-excel-export'); ... const exportExcel = (dataset) => {..
-
[python] Make Korail reservation Macro with telegram botPrograming/python 2019. 11. 12. 21:37
기차를 자주타서 예매를 하다 보면 I often take train, so I always reserve ticket on my phone. 원하는 여정이 매진일 때가 종종 있다. But the journey I want is usually sold out. 그럴때면 새로고침을 하면서 계속 예매 시도를 한다. When that happen, I'll refresh and keep trying to book. 이렇게 해서 실패한적은 없지만 시간과 노동이 소모되어 불편하다. This has never failed, but time and labor are inconvenient. 텔레그램 봇을 이용해서 기차표 예약을 하는 매크로를 만들 수 있다는 글을 보게 되었다. I found out that I can ..
-
[python] python3 - urllib3 telepot ssl certificate verify errorPrograming/python 2019. 11. 11. 18:21
error message : urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot984209853:AAEVtP_NYAi7QVn6ibL7gHUPk4DUkFUjGCE/getUpdates (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)'))) You need to downgrade urllib..