Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / 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 / README.md
Last active September 15, 2019 12:19
for traceroute assignment
@Gumball12
Gumball12 / assignment-1.c
Last active September 22, 2019 13:03
CSAPP assignments
// import modules
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
// define Stack struct
struct Stack {
int* arr;
int top;
unsigned length;
@Gumball12
Gumball12 / README.md
Last active September 24, 2019 07:52
학술정보검색 실습
  • ref는 언제나 꼭 달자 => 신뢰성 높아짐

    • 꼭 ref 달 때 아니라도 굉장히 유용한 정보들을 얻을 수 있을듯
  • ref 검색방법

    • 도서관 홈페이지 (없으면 원문복사신청)
      • 도서관의 통합검색 (개좋은듯)
      • 물론 해외 자료도 가능
    • 학술DB (RISS, NDSL, 국회도서관)
      • 도서관 홈페이지 통해서 가면 됨. 학교에서 구매한 유료자료 볼 수 있기 때문
  • 물론 구매안한 자료도 있기에, 원문복사신청

@Gumball12
Gumball12 / index.c
Last active September 28, 2019 09:55
Bit-level operation
// cs-assignment 2-2 "Byte Manipulation - Byte Level Operation"
// @author shj
// import modules
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define STR_SIZE 10 // string size
#define TESTING_TIMES 30 // for unit-testing