Skip to content

Instantly share code, notes, and snippets.

@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();