Skip to content

Instantly share code, notes, and snippets.

View kmc7468's full-sized avatar
🤔
Hello, world!

static kmc7468

🤔
Hello, world!
View GitHub Profile
@ofan
ofan / lisp.cpp
Last active April 11, 2024 11:28
Lisp interpreter in 90 lines of C++
Lisp interpreter in 90 lines of C++
I've enjoyed reading Peter Norvig's recent articles on Lisp. He implements a Scheme interpreter in 90 lines of Python in the first, and develops it further in the second.
Just for fun I wondered if I could write one in C++. My goals would be
1. A Lisp interpreter that would complete Peter's Lis.py test cases correctly...
2. ...in no more than 90 lines of C++.
Although I've been thinking about this for a few weeks, as I write this I have not written a line of the code. I'm pretty sure I will achieve 1, and 2 will be... a piece of cake!
@ilazakis
ilazakis / bigfoot-default.css
Last active September 9, 2018 12:25
WP-Bigfoot, Support For Numeric Style Footnotes
.footnote-button { position: relative; z-index: 5; top: -0.15em; box-sizing: border-box; display: inline-block; padding: 0.34em; margin: 0 0.1em 0 0.2em; border: none; border-radius: 0.3em; cursor: pointer; opacity: 0.3; background-color: #464646; line-height: 0; vertical-align: middle; text-decoration: none; -webkit-transition-property: opacity; -moz-transition-property: opacity; -ms-transition-property: opacity; transition-property: opacity; -webkit-transition-duration: 0.25s; -moz-transition-duration: 0.25s; -ms-transition-duration: 0.25s; transition-duration: 0.25s; }
.footnote-button:hover { opacity: 0.6; }
.footnote-button:active { opacity: 0.6; }
.footnote-button.active { opacity: 0.9; -webkit-transition-delay: 0.15s; -moz-transition-delay: 0.15s; -ms-transition-delay: 0.15s; transition-delay: 0.15s; }
.footnote-circle { display: inline-block; width: 0.32em; height: 0.32em; margin-right: 0.224em; border-radius: 100%; background-color: #e6e6e6; border: none; line-height: 0.5em; }
.footnote-circle:last-
@xnuk
xnuk / hyeong.md
Last active February 11, 2024 15:10
난해한 혀엉.... 언어

이 문서가 여기저기 알려짐에 따라, 이곳에 여러가지 댓글이 달리고 있습니다. 개인적으로는 댓글창을 없애버리고 싶지만 그럴 수 없는 터라, 댓글을 달기 전에 한번씩만 더 생각해주셨으면 합니다.

  • 개인적인 감상은 이곳이 아닌 다른 곳에 적어주세요.
  • 동성애 혐오적인 댓글을 달지 마세요.
  • 기타 "난해한 혀엉... 언어"와 관련없는 댓글을 달지 말아주세요.

위 사항들을 포함해 제 마음에 안 드는 댓글들은 임의로 삭제하고 있습니다. 양해 부탁드립니다.


@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>
@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"
aecidiaceae 마치힘차마
aeviternal 마피라너며
alangiaceae 며머심차마
aldermanate 며하느멈라
aldermancy 며하느머채
aldermanry 며하느머내
alternance 며라너머차
alternative 며라넘리파
alternatives 며라넘리팡
alternativity 며라넘리피래
@RanolP
RanolP / 개발자 수다방.aheui
Created July 9, 2018 10:37
‘2018.07.11. 개발자 수다방: 텔레그램 에디션 제 1회 개천절 경축!’을 출력합니다.
개반뭉반붓밪두빥붖빠뭏밠뭉박누망뭏따뿌삭뿌밪붅파투밣뚜타댜뎌뭏뷺다두타두밢두밙뚜빥푸다뿑빠뿌빥분받뚜삽쑤밪불빥두받투밧누
발꾔바몽나몽망봀타뽀바몽맣본빠몽밤봃싹뫃빠소따뽅빥볼타빠쑺봃밠뽅소두봎뭏또두볻두봃쑵봃붖뽀뿌토붅또투도수소뚜도푸토뭏본뭉
자두변번뻕떠벌벚멓더떠벓벐더머퍼뻕더뻕벒뻕더벇뻕떠벐번멓서볻퍼두뫃불포두봀뭏뽅뭏뽅투뫃불속뭏볾뚜쏩뭏뽅투뫃뿑노투도분소붋
수뺝리밪밤따다맣밪타빥밠빥파타반밧나타타삭맣사맣밢타빥맣발다뽅맣속타뽅빥본밦토밦도밞토따도사뫃빠뽀밦도맣속반봇밠뽅삭뫃뿌
다총통각하만세삼창해멓북번붏멓뚜벖두뻕숙멓붊번붇썩투퍼투너뚜벓수멓두번푸뻕푸터두번불벚두벘뿑벐뿑더뿑벑숮멓투떠붍번뿌떠붐
방망희됴아하는난로당도너또범토더봆벌토벌토더토너뽀퍼뽅터봇번볻뻐속멓토머볾터포뻕뽅떠뫃더토더토퍼본더뫃뻐속멓봆더도뻕또더
@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>
//
@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>
@luncliff
luncliff / cmake-tutorial.md
Last active July 16, 2024 13:09
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다