Searching can be an efficient way to navigate the current buffer.
The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:
- when we want to search something that's not directly there, those two commands can make us lose context very quickly,
- when we need to compare the matches.
| // based on https://gist.github.com/Potfur/5576225 & https://github.com/james2doyle/saltjs | |
| // more info: https://plus.google.com/109231487156400680487/posts/63eZzzrBSb6 | |
| window.$ = function(s) { | |
| var c = { | |
| '#': 'ById', | |
| '.': 'sByClassName', | |
| '@': 'sByName', | |
| '=': 'sByTagName'}[s[0]]; | |
| return document[c?'getElement'+c:'querySelectorAll'](s.slice(1)) | |
| }; |
With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.
Note that
- You should disable the
Between input languagesshotcut fromControl Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keysbecause it conflicts withcmd + shift + ↑ / ↓ / ← / →(select text between cursor and top / bottom / beginning of line / end of line) - you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
#Django + git + apache mod_wsgi na Kinghost
NOTE: Atualmente não é necessário tanto para fazer deploy de aplicações Django na Kinghost.
I hope you like it!
##Início
Talvez você não queira ficar digitando a senha toda vez que usar o ssh, então adicione sua chave pública ao seu host:
| // This post will briefly explain (omiting, skipping some parts) in code what is | |
| // Functor, Pointed Functor, Monad and Applicative Functor. Maybe by reading the | |
| // code you will easily grasp these functional concepts. | |
| // if you only want to run this code go to: | |
| // https://jsfiddle.net/leandromoreira/buq5mnyk/ | |
| // or https://gist.github.com/leandromoreira/9504733c7f8c6361c46270ea953d8409 | |
| // This code requires you to have require.js loaded (or you can load ramda instead :P) | |
| requirejs.config({ |