This file contains hidden or 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
# plotting with emacs calc and gnuplot | |
. 0 | |
. [ value, value, value, value ] | |
g D dumb | |
g O stdout | |
g r xmin, xmax | |
g R ymin, ymax | |
g f |
This file contains hidden or 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
# plotting with emacs calc and gnuplot | |
. 0 | |
. [ value, value, value, value ] | |
g D dumb | |
g O stdout | |
g r xmin, xmax | |
g R ymin, ymax | |
g C set terminal dumb 20,20 # canvas size | |
g f |
This file contains hidden or 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
100000000000 == 2048 | |
101100001111 == 2831 | |
110110100111 == 3495 | |
111101100011 == 3939 | |
111111111111 == 4095 | |
111101100011 == 3939 | |
110110100111 == 3495 | |
101100001111 == 2831 | |
100000000000 == 2048 | |
010011110000 == 1264 |
This file contains hidden or 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
;; requires a connected mozrepl | |
(defun point-conkeror-to-url (url) | |
(with-temp-buffer | |
(insert | |
"repl.home();" | |
(concat "content.location.href= '" url "';") | |
"repl.enter(content); \n") | |
(moz-send-region (point-min) (point-max)))) |
This file contains hidden or 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
setxkbmap -option ctrl:swapcaps |
This file contains hidden or 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
;;; leo-input-method.el | |
(quail-define-package | |
"spanish-leo-prefix" "Spanish" "leo>" t | |
"My spanish input-method." | |
nil t nil nil nil nil nil nil nil nil t) | |
(quail-define-rules | |
("'a" ?á) | |
("'e" ?é) | |
("'i" ?í) | |
("'o" ?ó) |
This file contains hidden or 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
printf("%x xor %x = %x \n", a, b, a ^ b); | |
printf("%x xor %x = %x \n", a, res, a ^ res); | |
printf("%d - %d = %d (overflow: %d)\n", a, b, res, overflow); | |
printf("%x - %x = %x (overflow: %x)\n", a, b, res, overflow); |
This file contains hidden or 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
(c-add-style "bsd-jimmy" | |
'("bsd" (c-basic-offset . 4))) | |
(add-to-list 'c-default-style '(c++-mode . "bsd-jimmy")) |
This file contains hidden or 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
;; load objc-mode for objective-C header files | |
(add-to-list 'magic-mode-alist | |
'((lambda () | |
(and (string= (file-name-extension buffer-file-name) "h") | |
(re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t))) | |
. objc-mode)) | |
;;set .m <-> .h correspondence for ff-find-other-file | |
(add-hook 'objc-mode-hook | |
(lambda () |
This file contains hidden or 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
sudo port clean --all installed | |
sudo port -f uninstall inactive |