Skip to content

Instantly share code, notes, and snippets.

🚀
솔직해지자

shj Gumball12

🚀
솔직해지자
View GitHub Profile
View I'm a night 🦉
🌞 Morning 208 commits ██▋░░░░░░░░░░░░░░░░░░ 12.6%
🌆 Daytime 466 commits █████▉░░░░░░░░░░░░░░░ 28.2%
🌃 Evening 653 commits ████████▎░░░░░░░░░░░░ 39.5%
🌙 Night 328 commits ████▏░░░░░░░░░░░░░░░░ 19.8%
@Gumball12
Gumball12 / code.md
Last active May 16, 2020
maverick git practice
View code.md

git 연습

1. git bash 다운로드 받기

구글에 git bash 검색해서 OS에 맞도록 다운로드받는다

2. git 설정

git bash를 켜고, 다음 명령을 통해 사용자를 설정해준다

View rpt1-problem3-1.js
/**
* cyclic graph
*
* 0 --- 3
* | |
* | |
* | |
* 1 --- 2
*
* 4 nodes, 4 edges
@Gumball12
Gumball12 / handler.js
Created Feb 8, 2020
naver-papago-example
View handler.js
'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 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-03-15T06:29:15.624Z","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
You can’t perform that action at this time.