Skip to content

Instantly share code, notes, and snippets.

View kmc7468's full-sized avatar
๐Ÿค”
Hello, world!

static kmc7468

๐Ÿค”
Hello, world!
View GitHub Profile
@kmc7468
kmc7468 / LinearEquation.cpp
Last active September 7, 2021 12:57
์ผ์ฐจ๋ฐฉ์ •์‹ ํ’€์ด ํ”„๋กœ๊ทธ๋žจ
/*
* MIT License
*
* Copyright (c) 2021 kmc7468
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@SkyLightQP
SkyLightQP / linked_list.rs
Created February 26, 2020 13:09
๋Ÿฌ์ŠคํŠธ ์ดˆ๋ณด์˜ ๋‹จ์ผ Linked List ๋งŒ๋“ค์–ด๋ณด๊ธฐ
#[derive(Debug)]
struct LinkedList<T> {
head: Option<Box<Node<T>>>,
length: usize
}
#[derive(Debug)]
struct Node<T> {
element: T,
next: Option<Box<Node<T>>>
@RanolP
RanolP / enumUtil.ts
Last active January 23, 2021 18:39
Add static method to enum without namespace in TypeScript
type NoConflict<
A extends Record<string | symbol, unknown>,
B extends string | number | symbol
> = { [K in keyof A]: K extends B ? never : A[K] };
type PropsUnion<A> = { [K in keyof A]: A[K] }[keyof A];
export function withMethods<
Origin extends Record<string | symbol, unknown>,
Methods extends Record<string | symbol, unknown>
@luncliff
luncliff / cmake-tutorial.md
Last active April 19, 2025 04:49
CMake ํ• ๋•Œ ์ชผ์˜ค์˜ค๊ธˆ ๋„์›€์ด ๋˜๋Š” ๋ฌธ์„œ

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

์ฃผ์˜

  • ์ด ๋ฌธ์„œ๋Š” CMake๋ฅผ ์ฃผ๊ด€์ ์œผ๋กœ ์„œ์ˆ ํ•ฉ๋‹ˆ๋‹ค
  • ์ด ๋ฌธ์„œ๋ฅผ ํ†ตํ•ด CMake๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ์—” ์ ํ•ฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค
    https://cgold.readthedocs.io/en/latest/ 3.1 ์ฑ•ํ„ฐ๊นŒ์ง€ ๋”ฐ๋ผํ•ด๋ณธ ์ดํ›„ ๊ธฐ๋ณธ์‚ฌํ•ญ๋“ค์„ ์†์„ฑ์œผ๋กœ ์ตํžˆ๋Š” ๊ฒƒ์„ ๋•๊ธฐ์œ„ํ•œ ๋ณด์กฐ์ž๋ฃŒ๋กœ์จ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค
@kmc7468
kmc7468 / Circle-MonteCarlo.cpp
Last active July 25, 2018 02:28
๋ชฌํ…Œ์นด๋ฅผ๋กœ ๋ฐฉ๋ฒ•์„ ์ด์šฉํ•œ ์›์ฃผ์œจ ๊ณ„์‚ฐ
/*
* (C) 2018. kmc7468 All rights reserved.
* The MIT License. See also the LICENSE file.
* https://gist.github.com/kmc7468/33bd66ecca40cb5a256ee4bb0700b8eb
*/
#include <chrono>
#include <future>
#include <iostream>
#include <random>
@kmc7468
kmc7468 / Air.ino
Last active July 24, 2018 09:22
๊ณต๊ธฐ ์ˆœํ™˜๊ธฐ ๋ชจ๋ธ
/*
* (C) 2018. kmc7468 All rights reserved.
* MIT ๋ผ์ด์„ ์Šค์ž…๋‹ˆ๋‹ค.
* https://gist.github.com/kmc7468/9cb6edc588b451f748dba9f96918309d
*/
#include "DHT.h"
#include <math.h>
//
@RanolP
RanolP / ๊ฐœ๋ฐœ์ž ์ˆ˜๋‹ค๋ฐฉ.aheui
Created July 9, 2018 10:37
โ€˜2018.07.11. ๊ฐœ๋ฐœ์ž ์ˆ˜๋‹ค๋ฐฉ: ํ…”๋ ˆ๊ทธ๋žจ ์—๋””์…˜ ์ œ 1ํšŒ ๊ฐœ์ฒœ์ ˆ ๊ฒฝ์ถ•!โ€™์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
๊ฐœ๋ฐ˜๋ญ‰๋ฐ˜๋ถ“๋ฐช๋‘๋นฅ๋ถ–๋น ๋ญ๋ฐ ๋ญ‰๋ฐ•๋ˆ„๋ง๋ญ๋”ฐ๋ฟŒ์‚ญ๋ฟŒ๋ฐช๋ถ…ํŒŒํˆฌ๋ฐฃ๋šœํƒ€๋Œœ๋ŽŒ๋ญ๋ทบ๋‹ค๋‘ํƒ€๋‘๋ฐข๋‘๋ฐ™๋šœ๋นฅํ‘ธ๋‹ค๋ฟ‘๋น ๋ฟŒ๋นฅ๋ถ„๋ฐ›๋šœ์‚ฝ์‘ค๋ฐช๋ถˆ๋นฅ๋‘๋ฐ›ํˆฌ๋ฐง๋ˆ„
๋ฐœ๊พ”๋ฐ”๋ชฝ๋‚˜๋ชฝ๋ง๋ด€ํƒ€๋ฝ€๋ฐ”๋ชฝ๋งฃ๋ณธ๋น ๋ชฝ๋ฐค๋ดƒ์‹น๋ซƒ๋น ์†Œ๋”ฐ๋ฝ…๋นฅ๋ณผํƒ€๋น ์‘บ๋ดƒ๋ฐ ๋ฝ…์†Œ๋‘๋ดŽ๋ญ๋˜๋‘๋ณป๋‘๋ดƒ์‘ต๋ดƒ๋ถ–๋ฝ€๋ฟŒํ† ๋ถ…๋˜ํˆฌ๋„์ˆ˜์†Œ๋šœ๋„ํ‘ธํ† ๋ญ๋ณธ๋ญ‰
์ž๋‘๋ณ€๋ฒˆ๋ป•๋– ๋ฒŒ๋ฒš๋ฉ“๋”๋– ๋ฒ“๋ฒ๋”๋จธํผ๋ป•๋”๋ป•๋ฒ’๋ป•๋”๋ฒ‡๋ป•๋– ๋ฒ๋ฒˆ๋ฉ“์„œ๋ณปํผ๋‘๋ซƒ๋ถˆํฌ๋‘๋ด€๋ญ๋ฝ…๋ญ๋ฝ…ํˆฌ๋ซƒ๋ถˆ์†๋ญ๋ณพ๋šœ์ฉ๋ญ๋ฝ…ํˆฌ๋ซƒ๋ฟ‘๋…ธํˆฌ๋„๋ถ„์†Œ๋ถ‹
์ˆ˜๋บ๋ฆฌ๋ฐช๋ฐค๋”ฐ๋‹ค๋งฃ๋ฐชํƒ€๋นฅ๋ฐ ๋นฅํŒŒํƒ€๋ฐ˜๋ฐง๋‚˜ํƒ€ํƒ€์‚ญ๋งฃ์‚ฌ๋งฃ๋ฐขํƒ€๋นฅ๋งฃ๋ฐœ๋‹ค๋ฝ…๋งฃ์†ํƒ€๋ฝ…๋นฅ๋ณธ๋ฐฆํ† ๋ฐฆ๋„๋ฐžํ† ๋”ฐ๋„์‚ฌ๋ซƒ๋น ๋ฝ€๋ฐฆ๋„๋งฃ์†๋ฐ˜๋ด‡๋ฐ ๋ฝ…์‚ญ๋ซƒ๋ฟŒ
๋‹ค์ดํ†ต๊ฐํ•˜๋งŒ์„ธ์‚ผ์ฐฝํ•ด๋ฉ“๋ถ๋ฒˆ๋ถ๋ฉ“๋šœ๋ฒ–๋‘๋ป•์ˆ™๋ฉ“๋ถŠ๋ฒˆ๋ถ‡์ฉํˆฌํผํˆฌ๋„ˆ๋šœ๋ฒ“์ˆ˜๋ฉ“๋‘๋ฒˆํ‘ธ๋ป•ํ‘ธํ„ฐ๋‘๋ฒˆ๋ถˆ๋ฒš๋‘๋ฒ˜๋ฟ‘๋ฒ๋ฟ‘๋”๋ฟ‘๋ฒ‘์ˆฎ๋ฉ“ํˆฌ๋– ๋ถ๋ฒˆ๋ฟŒ๋– ๋ถ
๋ฐฉ๋งํฌ๋ด์•„ํ•˜๋Š”๋‚œ๋กœ๋‹น๋„๋„ˆ๋˜๋ฒ”ํ† ๋”๋ด†๋ฒŒํ† ๋ฒŒํ† ๋”ํ† ๋„ˆ๋ฝ€ํผ๋ฝ…ํ„ฐ๋ด‡๋ฒˆ๋ณป๋ป์†๋ฉ“ํ† ๋จธ๋ณพํ„ฐํฌ๋ป•๋ฝ…๋– ๋ซƒ๋”ํ† ๋”ํ† ํผ๋ณธ๋”๋ซƒ๋ป์†๋ฉ“๋ด†๋”๋„๋ป•๋˜๋”
aecidiaceae ๋งˆ์น˜ํž˜์ฐจ๋งˆ
aeviternal ๋งˆํ”ผ๋ผ๋„ˆ๋ฉฐ
alangiaceae ๋ฉฐ๋จธ์‹ฌ์ฐจ๋งˆ
aldermanate ๋ฉฐํ•˜๋А๋ฉˆ๋ผ
aldermancy ๋ฉฐํ•˜๋А๋จธ์ฑ„
aldermanry ๋ฉฐํ•˜๋А๋จธ๋‚ด
alternance ๋ฉฐ๋ผ๋„ˆ๋จธ์ฐจ
alternative ๋ฉฐ๋ผ๋„˜๋ฆฌํŒŒ
alternatives ๋ฉฐ๋ผ๋„˜๋ฆฌํŒก
alternativity ๋ฉฐ๋ผ๋„˜๋ฆฌํ”ผ๋ž˜
@phu54321
phu54321 / g1.c
Created October 7, 2017 12:59
Prime generating quine
// Simple prime generatine quine example.
char *f="?1?2?0=5755?/(?75=?5='!??5?'%?",*r="aeaaaaaaa",a[]="c*d(%%e%y]0q9=("
"05;t/\"nf<(<u*(ip;ru}lrhr+)i7(3<[;!22*);}c(,=o7*1+u1fu}(tes+a=1{=5+]1xf=);q"
";pih?c$r5p5i;0(te3cle+r\"5;=8+>0/o0;p)prfa7[,(8-;%x)*cl4hs ; a,m0]p>;4r;pu;"
"ui(r57mi;-i3+;phs)ae{p*e*=);<(y](qutxtnx(=5,=i=+]+}=ae;r xufaqnbwdi+?p+tc+c"
"t+1?8x2+n+=)p=r }(i+t=a,;rh+/+4=+ch+hf*05+,;+%)1pu6(ie3f+c\"abwei13)7c)ha;a"
"(r)=1yi)1i;ut49fl4(;h?a[hal6){:;{ar}r\"-;'],<c0futc)2(s)*pa1a5ike))f3*ir(i("
"%9r!,um[)(+ch{)*e;pur?a]l;({&o2pf(9f3d7e?d=;i)(=haf;q p=t(2a[efnf1r)!(12(4\""
">t?[0i]/f4arop={u=c1?\"8(o>o)(;=*1)x),7u51,+=1[;r(ru=pt3h00,0ir0rbxp0q0;>;m"
@NeuroWhAI
NeuroWhAI / Action.hpp
Last active May 28, 2017 03:30
Parameters like Member variables
#include <memory>
#include <functional>
#include <type_traits>
#include <tuple>
#include <utility>
template <typename... ARGS>