Skip to content

Instantly share code, notes, and snippets.

@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}]
@ageldama
ageldama / .editorconfig
Created March 12, 2020 14:23 — forked from phanviet/.editorconfig
editorconfig-rails
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@ageldama
ageldama / URLs.txt
Created January 6, 2020 13:34
DBus, org.freedesktop.Notifications, dbus-send fun
https://dbus.freedesktop.org/doc/dbus-send.1.html
https://www.freedesktop.org/wiki/Software/dbus/
# Desktop Notifications Specification
http://www.galago-project.org/specs/notification/0.9/x408.html
(defparameter *p* (sb-ext:run-program "/usr/bin/wish" '()
:wait nil
;;:pty t
:input :stream
:output :stream
))
(defparameter *p* (sb-ext:run-program "/usr/bin/wish" '()
:wait nil
:pty t

iedit 좋다. 쓰자

기본 키들 참고

;; Unbind unneeded keys
(global-set-key (kbd "C-z") nil) ; 어차피 이걸 나도 내 개인용 keychord에 쓰지만, 아예 이렇게 죽여놓고 시작하자
(global-set-key (kbd "M-z") nil) ; TODO: 아래는 C-h k해보고.
(global-set-key (kbd "C-x C-z") nil)
(global-set-key (kbd "M-/") nil)
#!/usr/bin/env python
# STOLEN FROM: https://stackoverflow.com/a/39551083/3309907
from tkinter import *
class OnOk(object):
__slots__ = ['root', 'var']
def __init__(self, root, var):