Skip to content

Instantly share code, notes, and snippets.

@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);
@Gumball12
Gumball12 / 1.py
Last active August 22, 2019 03:57
sogaeding
import azure.cosmos.cosmos_client as cosmos_client
import azure.cosmos.errors as errors
config = {
'ENDPOINT': 'https://testdatabase02.documents.azure.com:443/',
'PRIMARYKEY': 'bpYTtYyi9lEiOG1wNvg8koXq56nqyGwJgS5NEE8wZzuImRA5qFtKbkTU9tVbt4rF39XbXsQqgvuFwp977UQpJg==',
'DATABASE': 'ToDoList',
'CONTAINER': 'Items'
}
@Gumball12
Gumball12 / sogaeding-OT.md
Last active August 14, 2019 08:40
notes that 190804 sogaeding OT

소개딩 정리

  • 60%: 보안목록
  • 40%: 보안점 (목록 외 보안사항들)

추가적인 가점 요소

  • 심사위원: 10점
    • DB 사용: 2
    • OpenAPI 사용: 2
    • Azure service 사용: 2
  • 서비스 관리(현황, 로깅, 관리자) 기능: 2
@Gumball12
Gumball12 / digital-logic.md
Last active June 11, 2019 05:40
3-1 기말 시험용
  • Thread class

    • new Thread(Runnable r)
    • start(): 인자로 들어온 Runnable 객체의 run() 메서드 실행
    • sleep(int n): nms 휴식
    • interrupted(): 중지
  • Data Stream

    • InputStream class
      • <InputStreamObject>.read(): 스트림에서 읽어들임
    • OutputStream class
@Gumball12
Gumball12 / CGT.html
Last active May 15, 2019 17:42
for Computer Graphics Test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome file</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
@Gumball12
Gumball12 / ThreadTester.java
Created May 3, 2019 05:24
os assignment: java thread
// https://repl.it/@Gumball12/os-assignment-java-thread
// import modules
import java.lang.Thread;
import java.lang.Math;
import java.lang.InterruptedException;
// ThreadTester class
public class ThreadTester {
public static void main (String[] args) {
@Gumball12
Gumball12 / README.md
Last active June 15, 2019 05:09
c# assignment 9

CS assignment - week 9

9주차 c# 과제 레포트입니다.

모든 코드는 gist(https://git.io/fjGar)에 업로드하였습니다.

Problem 1

쓰레드를 사용하여 실행 간격이 각기 다르게(1초, 2초, 3초) 동작하는 프로그램을 작성하는 문제입니다.

먼저 출력은 다음과 같습니다.

@Gumball12
Gumball12 / cs.md
Last active April 25, 2019 01:18
시험용

Introduce

참고로 c#은 console과 winform 둘 다 개발이 가능.

Introduction to cs

전체적으로 한 번 훑어보자.

operators

일반적으로 C와 비슷함. 다만 다음이 있음.

  • type testing operator
@Gumball12
Gumball12 / Game.cs
Last active April 21, 2019 04:23
c# assignment week7
using System;
public abstract class Game
{
// instance variables
protected int userWin, computerWin, drawn;
// constructor
public Game ()
{
@Gumball12
Gumball12 / Problem_1.cs
Last active April 14, 2019 03:23
c# assignment - week7
// import modules
using System;
using System.Collections.Generic;
using System.Linq;
class Problem_1
{
static void Main(string[] args)
{
// define Student list