Skip to content

Instantly share code, notes, and snippets.

🎯
ㅜ.ㅠ

shj Gumball12

🎯
ㅜ.ㅠ
Block or report user

Report or block Gumball12

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Gumball12
Gumball12 / index.py
Created Jan 20, 2020
200120 - 딥러닝
View index.py
# 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
"""
View cloudSettings
{"lastUpload":"2020-01-21T05:30:27.925Z","extensionVersion":"v3.4.3"}
@Gumball12
Gumball12 / index.js
Created Nov 17, 2019
net-with-docker assignment (server)
View index.js
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 Nov 8, 2019
SERVERLESS_WITH_OAUTH HANDER_CODE
View handler.js
'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 Nov 7, 2019
server and client code for network term project
View client.html
<!--
file upload client
@author shj
-->
<input type="file" />
<button>업로드</button>
<script>
// append event handler
@Gumball12
Gumball12 / 1128.md
Last active Nov 28, 2019
19-2 튜터링 문제 목록
View 1128.md

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

flow

  • Shape 클래스

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

@Gumball12
Gumball12 / 19-2-h-ai.md
Last active Oct 24, 2019
시험용 (h: 중간고사, f: 기말고사)
View 19-2-h-ai.md

탐색

  • 탐색

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

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

@Gumball12
Gumball12 / program.pro
Last active Oct 13, 2019
Implement of an Expert System in SWI-Prolog lang
View program.pro
동물원(X) :-
척추(X).
포유류(X) :-
척추(X),
not(알깜(X)).
조류(X) :-
척추(X),
알깜(X),
@Gumball12
Gumball12 / swap.c
Last active Oct 13, 2019
swap fucntion
View swap.c
#include <stdio.h>
/**
* swap function
* @param xp pointer x
* @param yp pointer y
* */
void swap(long *xp, long *yp) {
// define temporary values
long temp0 = *xp;
You can’t perform that action at this time.