I hereby claim:
- I am fimmtiu on github.
- I am fimmtiu (https://keybase.io/fimmtiu) on keybase.
- I have a public key ASBqWXFJYhhfd9pk4UK2GtoJUaM0VHJqiD4Kly8PvRD9aQo
To claim this, I am signing this object:
(defun convert-ruby-hashes () | |
(interactive) | |
(query-replace-regexp ":\\([[:word:]_]+\\)\\([[:space:]]+\\)=>[[:space:]]+" "\\1:\\2" nil | |
(if (and transient-mark-mode mark-active) (region-beginning)) | |
(if (and transient-mark-mode mark-active) (region-end)))) | |
(global-set-key (kbd "C-c h") 'convert-ruby-hashes) |
;; Fix the annoying Emacs if-indentation. | |
(put 'if 'lisp-indent-function nil) | |
(setq ring-bell-function 'ignore) | |
(defconst user-lisp-dir "~/.emacs.d/lisp/") | |
(add-to-list 'load-path user-lisp-dir) | |
(byte-recompile-directory user-lisp-dir t) | |
(defun move-two-spaces-left () | |
(interactive) |
TICKS_PER_SECOND = 60 | |
# A heading modified with a certain amount of randomness. | |
def heading_with_slop(heading, sloppiness_radians) | |
heading = heading.radians if heading.respond_to?(:radians) | |
left_side = heading - sloppiness_radians / 2 | |
RTanque::Heading.new(left_side + rand * sloppiness_radians) | |
end | |
# A data structore for keeping track of radar contacts. |
CONNECTED(00000003) | |
write to 0x7fa560d00320 [0x7fa561802000] (130 bytes => 130 (0x82)) | |
0000 - 80 80 01 03 01 00 57 00-00 00 20 00 00 39 00 00 ......W... ..9.. | |
0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............ | |
0020 - 00 00 33 00 00 32 00 00-2f 00 00 9a 00 00 99 00 ..3..2../....... | |
0030 - 00 96 03 00 80 00 00 05-00 00 04 01 00 80 00 00 ................ | |
0040 - 15 00 00 12 00 00 09 06-00 40 00 00 14 00 00 11 .........@...... | |
0050 - 00 00 08 00 00 06 04 00-80 00 00 03 02 00 80 00 ................ | |
0060 - 00 ff 84 e1 5d f5 2b f4-93 9a a3 1f 75 e4 6f 3c ....].+.....u.o< | |
0070 - 8d 31 71 0e 61 5b 1f a3-9f 9d 04 ef 96 a6 e4 85 .1q.a[.......... |
# Environment variables | |
export PATH="$HOME/.rbenv/bin:$PATH:$HOME/bin:$HOME/themis/script" | |
if command -v rbenv >/dev/null; then | |
eval "$(rbenv init -)" | |
fi | |
export ARCHFLAGS="-arch x86_64" | |
export VISUAL=/Applications/Emacs.app/Contents/MacOS/bin/emacsclient | |
export EDITOR=$VISUAL |
[user] | |
name = Dennis Taylor | |
email = dennis.taylor@clio.com | |
[color] | |
ui = auto | |
[alias] | |
s = status | |
st = stash |
// These make windows take up the left half and right half of the screen, respectively. | |
// I use this for Chrome windows on my Cinema Display. | |
var halfLeftVertical = slate.operation("push", { | |
"screen": "0", | |
"direction": "left", | |
"style": "bar-resize:screenSizeX/2" | |
}); | |
var halfRightVertical = slate.operation("push", { | |
"screen": "0", |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require "json" | |
CUSTOM_KEYS_FILE = "#{ENV["HOME"]}/Library/ApplicationSupport/Code/User/keybindings.json" | |
# Some commands are gratuitously different between Mac and Windows. | |
COMMAND_REPLACEMENTS = { | |
"workbench.action.files.openFileFolder" => "workbench.action.files.openFile", | |
} |