Skip to content

Instantly share code, notes, and snippets.

@ageldama
ageldama / i3-keys-rofi.pl
Created April 9, 2025 08:26
select i3-keybidnings in rofi-dmenu
#!/usr/bin/env perl
use strict;
use warnings;
use Carp;
use IPC::Open2;
# use DDP;
sub escape_html {
@ageldama
ageldama / cimgui-korean-ttf.c
Created March 8, 2025 03:47
cimgui-korean-ttf.c
ImFontAtlas_AddFontFromFileTTF(ioptr->Fonts,
"DOSSaemmul.ttf", 16.0f,
NULL,
ImFontAtlas_GetGlyphRangesKorean(ioptr->Fonts));
@ageldama
ageldama / 01.listing.sh
Last active March 8, 2025 03:48
s3에서 동영상 용량 모아보기
aws s3 ls files-dev --recursive >> s3-dev-ls.txt
aws s3 ls files-storage --recursive >> s3-prod-ls.txt
// 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;
#!/bin/bash
# DEPENDENCY: Bash
# DEPENDENCY: Perl v5.8+
# DEPENDENCY: `file` command
# DEPENDENCY: dcmtk -- https://dicom.offis.de/en/dcmtk/dcmtk-tools/
# SEE: https://www.dicomlibrary.com/dicom/dicom-tags/
# 현재 디렉토리 이하의 DICOM 파일만 검색하여, 특정 DICOM 태그를 모아서 JSON형태출력.
@ageldama
ageldama / paren6-defclass.lisp
Created December 20, 2022 09:22
static-fields parenscript
(parenscript:ps
(paren6:defclass6 (big-thing)
(defun constructor (size) nil))
(setf (ps:@ big-thing targets)
'("foo" "bar"))
)
http://karpathy.github.io/2021/06/21/blockchain/
@ageldama
ageldama / Rakefile
Created May 17, 2022 13:00
Rakefile: cc with separated build dir
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

Covariant, Contravariant, Invariant등 Type Variances 이해하기

#+CATEGORIES[]: programming #+tags[]: type type-system higher-order-type covariant contravariant invariant variances

거의 그대로 베껴온 원본 글

계약서로서의 타입

# 최 상위 EditorConfig 파일
root = true
# 모든 파일에 유닉스 스타일의 줄바꿈과 파일 끝을 지정합니다
[*]
end_of_line = lf
insert_final_newline = true
# 여러 유형의 확장자에 대한 기본 문자열 설정을 합니다
[*.{js,py}]