Skip to content

Instantly share code, notes, and snippets.

🌞 Morning 167 commits ██▊░░░░░░░░░░░░░░░░░░ 13.4%
🌆 Daytime 380 commits ██████▍░░░░░░░░░░░░░░ 30.6%
🌃 Evening 453 commits ███████▋░░░░░░░░░░░░░ 36.4%
🌙 Night 243 commits ████░░░░░░░░░░░░░░░░░ 19.5%
@Gumball12
Gumball12 / handler.js
Created February 8, 2020 02:42
naver-papago-example
'use strict';
const axios = require('axios');
module.exports.papago = async ({ body }) => {
const { text } = JSON.parse(body);
console.log(text);
const { data } = await axios.post('https://openapi.naver.com/v1/papago/n2mt', { // data
@Gumball12
Gumball12 / index.py
Created January 20, 2020 14:45
200120 - 딥러닝
# import module
import numpy as np
# datas
# 0 1 2 3 4
y = np.array([0.13, 0.64, 0.0, 0.05, 0.52]) # Prediction Label
t = np.array([0 , 1 , 0 , 0 , 0 ]) # Correction Label
w = np.array([0 , 0 , 1 , 0 , 0 ]) # Wrong Label
"""
@Gumball12
Gumball12 / index.js
Created November 17, 2019 03:08
net-with-docker assignment (server)
const express = require('express');
// Constants
const PORT = 8000;
// App
const app = express();
app.get('/', function (req, res) {
res.send('Master');
});
@Gumball12
Gumball12 / handler.js
Created November 8, 2019 09:56
SERVERLESS_WITH_OAUTH HANDER_CODE
'use strict';
// import modules
const _ = require('lodash');
const aws = require('aws-sdk');
const randomEmoji = require('random-emoji');
// aws lambda
const lambda = new aws.Lambda({
region: 'ap-northeast-2',
@Gumball12
Gumball12 / client.html
Created November 7, 2019 14:41
server and client code for network term project
<!--
file upload client
@author shj
-->
<input type="file" />
<button>업로드</button>
<script>
// append event handler
@Gumball12
Gumball12 / _worth-reading.md
Last active July 30, 2023 14:42
나를 위해 저장하는 읽어볼 만한 글들 모음
@Gumball12
Gumball12 / 1128.md
Last active November 28, 2019 07:24
19-2 튜터링 문제 목록

다음을 만족하는 클래스와 함수를 작성해주세요

flow

  • Shape 클래스

    • 상속을 위한 클래스
    • private 접근자를 갖는 name 필드가 존재
    • Shape 클래스를 상속받는 클래스는 getArea 메서드를 반드시 구현해야만 함
    • getArea 메서드는 도형의 넓이를 반환
  • Rect 클래스

@Gumball12
Gumball12 / 19-2-h-ai.md
Last active October 4, 2021 10:52
시험용 (h: 중간고사, f: 기말고사)

탐색

  • 탐색

    • 상태공간 내에서
    • 시작상태에서 목표상태까지의 경로를 찾는 것
    • 각 상태를 생성하는 것을 연산자 라고 함
  • 상태, 연산자, 그리고 상태 트리를 이용해 답을 찾아나가는 것

    • 물론 이를 직접 프로그래밍 하지는 않으며, DFS/BFS 를 사용해 풀어나감
  • 알고리즘

@Gumball12
Gumball12 / program.pro
Last active October 13, 2019 13:12
Implement of an Expert System in SWI-Prolog lang
동물원(X) :-
척추(X).
포유류(X) :-
척추(X),
not(알깜(X)).
조류(X) :-
척추(X),
알깜(X),