This file contains 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
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 |
This file contains 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
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}); | |
}); | |
}); |
This file contains 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
(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) |
This file contains 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
(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)) |
This file contains 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
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. |