Skip to content

Instantly share code, notes, and snippets.

@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):
### Keybase proof
I hereby claim:
* I am ageldama on github.
* I am ageldama (https://keybase.io/ageldama) on keybase.
* I have a public key whose fingerprint is 6443 D0A3 9924 7792 A60B 75E4 ECDF 560A D040 7B6F
To claim this, I am signing this object:
;;;; ~/.xbindkeysrc.scm
(xbindkey '("b:10") "xdotool key Next")
(xbindkey '("b:11") "xdotool key Prior")
(defun tokenize (s &key emit-fn)
(let ((lexer-fn (lexer s)))
(loop :with token :and val
:do (setf (values token val) (funcall lexer-fn))
:while (not (null token))
:if (null emit-fn)
:collect (cons token val)
:else
:do (funcall emit-fn token val))))
m.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
3 | main() {
| ^~~~
m.c: In function ‘main’:
m.c:4:16: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
4 | printf("%p\n", malloc(0));
| ^~~~~~
m.c:4:16: warning: incompatible implicit declaration of built-in function ‘malloc’
m.c:2:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
1 | #include <stdio.h>
https://www.dropbox.com/s/kbrtnj9bkc84jqu/%25ED%2594%25BC%25EB%25B6%2580%25EC%2596%2591%25EC%259E%2590%252B%25EC%259E%2590%25EA%25B2%25A9%2528%25EC%25B7%25A8%25EB%2593%259D%25E3%2586%258D%25EC%2583%2581%25EC%258B%25A4%2529%25EC%258B%25A0%25EA%25B3%25A0%25EC%2584%259C%252B%25281%2529.pdf?dl=0