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
| { | |
| "description": "CapsLock ctrl layer + hjkl arrows", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { "optional": ["any"] } | |
| }, | |
| "to": [{ "key_code": "left_control" }], |
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
| " close buffer without closing window using leader q | |
| map <leader>q :bp<bar>sp<bar>bn<bar>bd<CR> | |
| " nice indent for yaml files: | |
| autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab | |
| " | |
| " nice indent for html files: | |
| autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab |
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
| class Solution: | |
| def get_longest_subsequence(self, tupl): | |
| sequence_counter = [] | |
| longest_sequence = 1; | |
| for i,ivalue in enumerate(tupl): | |
| sequence_counter.insert(i,1) | |
| for j in reversed(range(i)): | |
| print "============" | |
| print "Turn: I {0} and J {1}".format(tupl[i],tupl[j]) | |
| print "I has index {0}".format(sequence_counter[i]) |