Skip to content

Instantly share code, notes, and snippets.

View honux77's full-sized avatar
🏠
Working from home

Hoyoung Jung honux77

🏠
Working from home
View GitHub Profile
@honux77
honux77 / Main.java
Created March 25, 2024 06:10
Bad Thread Example
package org.example;
public class Main {
public static long result = 0;
public static void main(String[] args) {
final int NUM_THREADS = 10;
final long START_NUM = 0;
//final long END_NUM = 300000000;
final long END_NUM = 10000000;
## μžλ°” 기초 ν•™μŠ΅ν•˜κΈ°
1. λ¬΄μ—‡μœΌλ‘œ μžλ°”λ₯Ό κ³΅λΆ€ν–ˆλ‚˜μš” (기초편)?
- 이것이 μžλ°”λ‹€ (μ‹ μš©κΆŒ μ €)
- μžλ°”μ˜ 정석 기초편 (남ꢁ성 μ €)
- μΈν”„λŸ° κ°•μ˜ (κΉ€μ˜ν•œ κ°•μ‚¬λ‹˜ 기초편)
2. 기초λ₯Ό ν•™μŠ΅ν•œ 이후 μžλ°”λ₯Ό ν•™μŠ΅ν•˜κΈ° μœ„ν•΄ 쒋은 것듀은?
@honux77
honux77 / README.md
Created July 5, 2023 06:27
간단 gist λ¬Έμ„œ

기슀트 μ„€λͺ…

@honux77
honux77 / umlang.md
Created August 28, 2022 12:28
Hello world μ—„λž­
@honux77
honux77 / branch.sh
Created January 9, 2022 08:41
Branch Generation from text file
#!/bin/bash
filename='user.txt'
repo='origin'
base='main'
i=0
while read user; do
echo "$i: $user"
@honux77
honux77 / GitHub Repo Invitation.ipynb
Last active December 24, 2021 08:32
GitHub Oranizations invite member
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@honux77
honux77 / array.c
Last active February 22, 2021 06:00
21-02-22-codesquad-lecture
#include <stdio.h>
#include <stdlib.h>
double d[] = {1.0, 3.0, 5.0}; //μ „μ—­λ³€μˆ˜, data μ˜μ—­μ— μ €μž₯됨
int main(int argc, char const *argv[])
{
int *a = malloc(sizeof(int) * 10); //동적 ν• λ‹Ή νž™μ— μ €μž₯됨
a[0] = 1;
a[1] = 2;
@honux77
honux77 / boj-1089-me.cpp
Created January 12, 2021 06:36
boj-1089-me.cpp
#include <cstdio>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
using ull = long long int;
vector<string> d = {
"###...#.###.###.#.#.###.###.###.###.###",
@honux77
honux77 / hotel.cpp
Created January 9, 2021 16:13
BOJ 1106 hotel
#include <cstdio>
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
using ull = long long int;
const int INF = 87654321;
@honux77
honux77 / Quantum.java
Last active January 5, 2021 17:08
Success!
package net.honux;
public class Quantum extends Thread {
static int a;
public static void main(String[] args) {
Thread t = new Quantum();
t.start();