Skip to content

Commit 376cb9c

Browse files
committed
Merge with oop, python, unmanaged-languages repositories
1 parent e4a7f5d commit 376cb9c

File tree

936 files changed

+42080
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

936 files changed

+42080
-1
lines changed

.clang-format

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
BasedOnStyle: Google
3+
4+
# Base
5+
IndentWidth: 4
6+
UseTab: Never
7+
ColumnLimit: "160"
8+
MaxEmptyLinesToKeep: "1"
9+
BreakBeforeBraces: Allman
10+
11+
# Class definition
12+
AccessModifierOffset: -4
13+
14+
# Constructor initializer list style
15+
ConstructorInitializerAllOnOneLineOrOnePerLine: "false"
16+
BreakConstructorInitializers: BeforeComma
17+
BreakInheritanceList: BeforeComma
18+
ConstructorInitializerIndentWidth: "0"
19+
20+
# Use T<pair<int, int>> instead of T<pair<int, int> >
21+
Standard: Cpp03
22+
23+
# Pointer and reference alignment
24+
PointerAlignment: Left
25+
26+
# namespace
27+
NamespaceIndentation: All
28+
29+
AlignConsecutiveMacros: "true"
30+
AlignConsecutiveAssignments: "false"
31+
AlignConsecutiveDeclarations: "false"
32+
AlignEscapedNewlines: Left
33+
AlignOperands: "true"
34+
AlignTrailingComments: "true"
35+
36+
AllowShortBlocksOnASingleLine: "false"
37+
AllowShortFunctionsOnASingleLine: None
38+
AllowShortIfStatementsOnASingleLine: Never
39+
AllowShortLoopsOnASingleLine: "false"
40+
AlwaysBreakBeforeMultilineStrings: "false"
41+
AlwaysBreakTemplateDeclarations: "Yes"
42+
43+
BinPackArguments: "false"
44+
BinPackParameters: "false"
45+
46+
BreakBeforeBinaryOperators: None
47+
BreakBeforeTernaryOperators: "true"
48+
49+
Cpp11BracedListStyle: "true"
50+
IncludeBlocks: Merge
51+
JavaScriptQuotes: Double
52+
JavaScriptWrapImports: "true"
53+
KeepEmptyLinesAtTheStartOfBlocks: "false"
54+
ReflowComments: "true"
55+
SortIncludes: "true"
56+
SortUsingDeclarations: "true"
57+
58+
SpaceAfterCStyleCast: "false"
59+
SpaceAfterLogicalNot: "false"
60+
SpaceAfterTemplateKeyword: "true"
61+
SpaceBeforeAssignmentOperators: "true"
62+
SpaceBeforeCpp11BracedList: "false"
63+
SpaceBeforeCtorInitializerColon: "false"
64+
SpaceBeforeInheritanceColon: "true"
65+
SpaceBeforeRangeBasedForLoopColon: "true"
66+
SpaceInEmptyParentheses: "false"
67+
SpacesInAngles: "false"
68+
SpacesInCStyleCastParentheses: "false"
69+
SpacesInContainerLiterals: "false"
70+
SpacesInParentheses: "false"
71+
SpacesInSquareBrackets: "false"
72+
# https://zed0.co.uk/clang-format-configurator/

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# OS
2+
.DS_Store
3+
4+
# vscode
5+
.vscode/
6+
7+
# code-runner
8+
tempCodeRunnerFile.*
9+
10+
# C/C++
11+
a.out
12+
a.out.dSYM/
13+
*.o
14+
*.i
15+
*.bc
16+
17+
# Node.js
18+
node_modules/
19+
20+
# Python
21+
__pycache__/
22+
venv/
23+
24+
# Java
25+
26+
# Compiled class file
27+
*.class
28+
29+
# Log file
30+
*.log
31+
32+
# BlueJ files
33+
*.ctxt
34+
35+
# Mobile Tools for Java (J2ME)
36+
.mtj.tmp/
37+
38+
# Package Files #
39+
*.jar
40+
*.war
41+
*.nar
42+
*.ear
43+
*.zip
44+
*.tar.gz
45+
*.rar
46+
47+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
48+
hs_err_pid*
49+
replay_pid*

.gitmessage

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# commit message template
2+
##################
3+
# git config --local commit.template .gitmessage
4+
# git config --local --unset commit.template
5+
# Body와 Footer는 선택사항입니다.
6+
##################
7+
# Type: Subject
8+
9+
# Body
10+
11+
# Footer
12+
########Type########
13+
# feat: 새로운 기능 추가
14+
# fix: 버그 수정
15+
# refactor: 코드 리팩토링
16+
# chore: 빌드 업무 수정, 패키지 매니저 수정, production code와 무관한 부분들 (.gitignore, build.gradle 같은)
17+
# test: 테스트 코드, 리팩토링 테스트 코드 추가
18+
########Subj########
19+
# 영어로 Subject 작성 시
20+
# Add: 추가
21+
# Remove: 삭제
22+
# Simplify: 단순화
23+
# Update: 보완
24+
# Implement: 구현
25+
# Prevent: 방지
26+
# Move: 이동
27+
# Rename: 이름 변경
28+
####################
29+
# 예시
30+
# feat: Implement JWT
31+
32+
# 로그인 시 JWT 발급
33+
34+
# Resolves: #111
35+
# Ref: #122
36+
# related to: #30, #50

GUIDE.md

Whitespace-only changes.

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
# Programming
1+
# Programming
2+
3+
## Procedural programming
4+
5+
## Object-oriented programming
6+
7+
## Functional programming

java/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Java

java/java-start/.idea/workspace.xml

+165
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/java-start/00_intro.iml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

java/java-start/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# What is difference of Java adn C++?
2+
3+
## Java
4+
5+
**WORA (Write Once, Run Anywhere)**
6+
- 컴파일된 자바 코드는 Java Virtual Machine (JVM)에서 실행될 수 있는 바이트코드로 컴파일됨
7+
- 컴파일된 자바 코드는 다시 컴파일할 필요 없이 자바를 지원하는 모든 플랫폼에서 실행 가능
8+
## References
9+
10+
- [Java (programming language)](https://en.wikipedia.org/wiki/Java_(programming_language))
11+
- [01. 기술면접 - 자바 - JAVA 와 C/C++ 차이점](https://theheydaze.tistory.com/598)
12+
- [[Java] JVM(Java Virtual Machine) 이해하기 -1 : 동작 과정 — Contributor9](https://adjh54.tistory.com/279)
13+
- [[JAVA] JVM 동작원리 및 기본개념](https://steady-snail.tistory.com/67)
14+
- [JVM 구조와 JAVA의 동작 원리](https://velog.io/@sgwon1996/JAVA%EC%9D%98-%EB%8F%99%EC%9E%91-%EC%9B%90%EB%A6%AC%EC%99%80-JVM-%EA%B5%AC%EC%A1%B0)

java/java-start/src/HelloJava.java

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public class HelloJava {
2+
public static void main(String[] args) {
3+
System.out.println("Hello Java1");
4+
System.out.println("Hello Java2");
5+
System.out.println("Hello Java3");
6+
}
7+
}
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package condition;
2+
3+
public class While {
4+
public static void main(String[] args) {
5+
int cnt = 10;
6+
do {
7+
++cnt;
8+
System.out.println("cnt: " + cnt);
9+
} while (cnt < 10);
10+
11+
int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9};
12+
for (int num : arr)
13+
{
14+
System.out.println(num);
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)