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 November 13, 2024 00:33
λ‚˜λ₯Ό μœ„ν•΄ μ €μž₯ν•˜λŠ” 읽어볼 λ§Œν•œ κΈ€λ“€ λͺ¨μŒ
@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),