Skip to content

Instantly share code, notes, and snippets.

This setup is very ugly and will hopefully get better when some of the TODOs
for tmux get implemented.
---
1. Add the stuff from the vimrc file to your .vimrc or some file that is sorced
from your .vimrc.
- This just adds a few maps and functions to escape vim with ^w<motion>
when you are on an edge window in vim.
@randymorris
randymorris / rcirc-markup-right-align-nicks.el
Created November 12, 2012 22:08
Right align nicks in rcirc so messages all start at the same column
(defvar rcirc-max-nick-length 10
"Maxmimum nick length used for right-aligned nicks.")
(defun rcirc-markup-right-align-nicks (sender response)
"Right align nicks, truncating at `rcirc-max-nick-length'."
(goto-char (point-min))
(string-match "^..:.. <\\([^>]+\\)>" (buffer-string))
(let* ((length rcirc-max-nick-length)
(nick (match-string 1 (buffer-string)))
(nick* (format (format "%%%ds" length) nick))
@randymorris
randymorris / rcirc-markup-custom-nick-format.el
Created November 12, 2012 23:40
Nicer nick format for rcirc buffers
(defun rcirc-markup-custom-nick-format (sender response)
"Change the way nicks are formatted in rcirc buffers."
(goto-char (point-min))
(string-match "^..:.. <\\([^>]+\\)>" (buffer-string))
(let* ((nick (match-string 1 (buffer-string))))
(while (search-forward (format "<%s>" nick) nil t)
(replace-match (format "%s %s" nick (string #x2237)) nil t))))
(add-to-list 'rcirc-markup-text-functions 'rcirc-markup-custom-nick-format)
describe('Example', function () {
it('should fail when extra undefined keys are passed', function() {
var test = jest.genMockFunction();
test({a: 1, b: undefined});
expect(test).toBeCalledWith({a: 1});
});
});
id,summary
1,something is wrong
2,we should probably fix it
3,or maybe we shouldn't
4,i don't really care at this point