#+CATEGORIES[]: programming #+tags[]: type type-system higher-order-type covariant contravariant invariant variances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Carp; | |
use IPC::Open2; | |
# use DDP; | |
sub escape_html { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ImFontAtlas_AddFontFromFileTTF(ioptr->Fonts, | |
"DOSSaemmul.ttf", 16.0f, | |
NULL, | |
ImFontAtlas_GetGlyphRangesKorean(ioptr->Fonts)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 ls files-dev --recursive >> s3-dev-ls.txt | |
aws s3 ls files-storage --recursive >> s3-prod-ls.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://dev.to/webeleon/unit-testing-nestjs-with-mongo-in-memory-54gd | |
// npm i --save-dev mongodb-memory-server | |
import { MongooseModule, MongooseModuleOptions } from '@nestjs/mongoose'; | |
import { MongoMemoryServer } from 'mongodb-memory-server'; | |
let mongod: MongoMemoryServer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(parenscript:ps | |
(paren6:defclass6 (big-thing) | |
(defun constructor (size) nil)) | |
(setf (ps:@ big-thing targets) | |
'("foo" "bar")) | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://karpathy.github.io/2021/06/21/blockchain/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pathname' | |
SRCS = FileList['**/*.c'] | |
DSTS = SRCS.ext('o').pathmap('build/%d/%f').map do |f| | |
Pathname.new(f).cleanpath.to_s | |
end | |
DST_TO_SRC_H = DSTS.zip(SRCS).to_h | |
task :compile => DSTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 최 상위 EditorConfig 파일 | |
root = true | |
# 모든 파일에 유닉스 스타일의 줄바꿈과 파일 끝을 지정합니다 | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
# 여러 유형의 확장자에 대한 기본 문자열 설정을 합니다 | |
[*.{js,py}] |
NewerOlder