Skip to content

Instantly share code, notes, and snippets.

@Gumball12
Gumball12 / lotto.java
Created October 3, 2018 08:52
Lotto MVC
// *** ๋กœ๋˜ ***
// # Rules
// * ์ˆซ์ž๋Š” 1 ~ 45
// * 7๊ฐœ์˜ ์ˆซ์ž๋ฅผ ๋ฝ‘๋Š”๋‹ค
// # Process
// 1. 7๊ฐœ์˜ ์ˆซ์ž๋ฅผ ์ž…๋ ฅํ•œ๋‹ค
// 2. 1 ~ 45 ๋ถ€ํ„ฐ ํ•˜๋‚˜์”ฉ ๋žœ๋ค์œผ๋กœ ๋ฝ‘์•„๊ฐ€๋ฉฐ ์ด 7๊ฐœ์˜ ์ˆซ์ž๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค.
// 3. ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•œ ์ˆซ์ž์™€ ๋žœ๋ค์œผ๋กœ ๋ฝ‘ํžŒ ์ˆซ์ž๋ฅผ ๋น„๊ตํ•ด ๋งž์€ ๊ฐฏ์ˆ˜๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค.
//gcc 5.4.0
/** ๋กœ๋˜
*
* # Rules
* > ์ˆซ์ž๋Š” 1 ~ 45
* > ์ด 7 ๊ฐœ์˜ ์ˆซ์ž๋ฅผ ๋ฝ‘๋Š”๋‹ค
*
* # Process
* 1. 7 ๊ฐœ์˜ ์ˆซ์ž๋ฅผ ์ž…๋ ฅํ•œ๋‹ค
@Gumball12
Gumball12 / open-assignment-week2.md
Last active March 18, 2019 11:58
opengl assignments

Video Controller

Figure 2-26 shows a commonly used organization for raster systems.

๊ทธ๋ฆผ 2-26์€ ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ์šฉ๋˜๋Š” raster system์˜ ๊ตฌ์กฐ๋ฅผ ๋ณด์—ฌ์ค€๋‹ค.

A fixed area of the system memory is reserved for the frame buffer, and the video controller is given direct access to the frame-buffer memory.

system memory์— frame buffer๋ฅผ ์œ„ํ•œ ๊ณ ์ •๋œ ์˜์—ญ์„ ์˜ˆ์•ฝํ•ด ๋†“๊ณ , Video controller๊ฐ€ ์ด frame-buffer memory์— ์ง์ ‘ ์ ‘๊ทผํ•˜๋Š” ๊ฒƒ์ด๋‹ค.

@Gumball12
Gumball12 / Assignment1_1.cs
Last active March 18, 2019 09:20
Windows programming (c-sharp) assignment 1
/**
* Windows programming (c#) assignment 1.1
* https://repl.it/@Gumball12/Windows-programming-c-sharp-assignment-11
*
* @author HaeJun Seo
* @since Mar 14, 2019
*/
using System;
@Gumball12
Gumball12 / Assigmnet2_1.cs
Last active March 19, 2019 10:14
c# assignments 2
/**
* Windows programming (c#) assignment 2.1
*
* @author HaeJun Seo
* @since Mar 18, 2019
*/
// Mono C# compiler v4.6.2.0
using System;
@Gumball12
Gumball12 / README.md
Last active March 31, 2019 18:06
c# assignments 4

Windows Programming (C#) assignments - 4

์œˆ๋„์šฐ์ฆˆ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์‹ค์Šต๋ฌธ์ œ 4๋ฒˆ์ž…๋‹ˆ๋‹ค.

Problem 1

๋‹ค์Œ๊ณผ ๊ฐ™์ด Fraction ํด๋ž˜์Šค๋ฅผ ์ด์šฉํ•ด ๋ถ„์ˆ˜์˜ ์ž…๋ ฅ์„ ๋ฐ›์•„,

new Fraction(5, 6);
@Gumball12
Gumball12 / Assignment5_1.cs
Last active April 5, 2019 02:59
c# assignments
// https://repl.it/@Gumball12/Windows-programming-c-sharp-assignment-5-1
using System;
using System.Linq;
class Problem_1
{
static void Main(string[] args)
{
// tool
@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
@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 / cs.md
Last active April 25, 2019 01:18
์‹œํ—˜์šฉ

Introduce

์ฐธ๊ณ ๋กœ c#์€ console๊ณผ winform ๋‘˜ ๋‹ค ๊ฐœ๋ฐœ์ด ๊ฐ€๋Šฅ.

Introduction to cs

์ „์ฒด์ ์œผ๋กœ ํ•œ ๋ฒˆ ํ›‘์–ด๋ณด์ž.

operators

์ผ๋ฐ˜์ ์œผ๋กœ C์™€ ๋น„์Šทํ•จ. ๋‹ค๋งŒ ๋‹ค์Œ์ด ์žˆ์Œ.

  • type testing operator