Skip to content

Instantly share code, notes, and snippets.

@Gumball12
Gumball12 / _worth-reading.md
Last active July 30, 2023 14:42
나를 위해 저장하는 읽어볼 만한 글들 모음
@Gumball12
Gumball12 / README.md
Last active October 4, 2021 10:53
Byte converter implemented by C lang (random int, double, char, string => byte)

Byte Converter

random int, double, char, string => byte

flow chart

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

탐색

  • 탐색

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

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

@Gumball12
Gumball12 / week-1.md
Last active September 1, 2021 08:38
practice DB
/**
 * create slave table, and then insert rows
 */

create table salves (이름 char(10) primary key, 월급 number, 나이 number);

insert into slaves values('규', 400000, 5);
insert into slaves values('설', 5000000, 73);
insert into slaves values('준', 3000000, 53);
🌞 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 / 1128.md
Last active November 28, 2019 07:24
19-2 튜터링 문제 목록

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

flow

  • Shape 클래스

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

@Gumball12
Gumball12 / w1-1.cpp
Last active November 21, 2019 07:32
19-2h tutoring https://git.io/Je4r2
// https://rextester.com/KAY13591
// import modules
#include <iostream>
// define Character class
class Character {
private:
// declare fields
int x;
@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');
});