Skip to content

Instantly share code, notes, and snippets.

View HighlightCode's full-sized avatar
๐Ÿฆ“
Hellllo

Sang In Park HighlightCode

๐Ÿฆ“
Hellllo
View GitHub Profile
@HighlightCode
HighlightCode / sched_fifo.cpp
Created June 27, 2022 11:15
sched_fifo intro
#include <sched.h>
#include <stdio.h>
#include <unistd.h>
#include <iostream>
int main(int argc, char* argv[]) {
/*
you can run this code in below command
#include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <stack>
#include <set>
#include <vector>
using namespace std;
@HighlightCode
HighlightCode / BFS(Breadth First Search) Graph
Last active April 25, 2022 10:07
BFS(Breadth First Search) Graph
#include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
@HighlightCode
HighlightCode / Quick Sort
Created April 25, 2022 06:38
Quick Sort
#include <iostream>
#include <iterator>
#include <vector>
/*----------------
Quick Sort
----------------*/
template <typename T>
auto partition(typename std::vector<T>::iterator begin,
@HighlightCode
HighlightCode / Merge Sort
Created April 25, 2022 06:02
Merge Sort
#include <iostream>
#include <iterator>
#include <vector>
/*----------------
Merge Sort
----------------*/
template <typename T>
std::vector<T> merge(std::vector<T> &left, std::vector<T> &right) {
@HighlightCode
HighlightCode / Template Specialization
Created April 22, 2022 06:02
Template Specialization
#include <iostream>
using namespace std;
template<class T, int size>
class StaticArray_BASE
{
public:
T* getArray() { return m_array; }
@HighlightCode
HighlightCode / cmake-tutorial.md
Created November 15, 2021 02:30 — forked from luncliff/cmake-tutorial.md
CMake ํ• ๋•Œ ์ชผ์˜ค์˜ค๊ธˆ ๋„์›€์ด ๋˜๋Š” ๋ฌธ์„œ

CMake๋ฅผ ์™œ ์“ฐ๋Š”๊ฑฐ์ฃ ?
์ข‹์€ ํˆด์€ Visual Studio ๋ฟ์ž…๋‹ˆ๋‹ค. ๊ทธ ์ด์™ธ์—๋Š” ์ „๋ถ€ ์‚ฌ๋„(้‚ช้“)์ž…๋‹ˆ๋‹ค ์‚ฌ๋„! - ์ž‘์„ฑ์ž

์ฃผ์˜

  • ์ด ๋ฌธ์„œ๋Š” CMake๋ฅผ ์ฃผ๊ด€์ ์œผ๋กœ ์„œ์ˆ ํ•ฉ๋‹ˆ๋‹ค
  • ์ด ๋ฌธ์„œ๋ฅผ ํ†ตํ•ด CMake๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ์—” ์ ํ•ฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค
    https://cgold.readthedocs.io/en/latest/ 3.1 ์ฑ•ํ„ฐ๊นŒ์ง€ ๋”ฐ๋ผํ•ด๋ณธ ์ดํ›„ ๊ธฐ๋ณธ์‚ฌํ•ญ๋“ค์„ ์†์„ฑ์œผ๋กœ ์ตํžˆ๋Š” ๊ฒƒ์„ ๋•๊ธฐ์œ„ํ•œ ๋ณด์กฐ์ž๋ฃŒ๋กœ์จ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค