Motion, keyboard commands and shortcuts for VI Improved
- Dynamic Dispatch
- Dynamic Method
- Ghost Methods
- Dynamic Proxies
- Blank Slate
- Kernel Method
- Flattening the Scope (aka Nested Lexical Scopes)
- Context Probe
- Class Eval (not really a 'spell' more just a demonstration of its usage)
- Class Macros
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
| --- | |
| METHOD 1 | |
| This should roughly sort the items on distance in MySQL, and should work in SQLite. | |
| If you need to sort them preciser, you could try using the Pythagorean theorem (a^2 + b^2 = c^2) to get the exact distance. | |
| --- | |
| SELECT * | |
| FROM table | |
| ORDER BY ((lat-$user_lat)*(lat-$user_lat)) + ((lng - $user_lng)*(lng - $user_lng)) ASC |
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
| {% comment %} | |
| Instructions: | |
| - Create a blank page called 'Google Base Product Feed'and save it | |
| - Open that page for editing and select 'page.google-feed' from the page template selector | |
| - Add a brief site description to the meta-shop-description snippet | |
| - The feed url should now be available at http://www.yoursite.com/pages/google-base-product-feed | |
| - validate your field at http://validator.w3.org/feed/ | |
| - when ready, submit your feed at http://base.google.com |
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
| " Install by saving as plugin/match_visual.vim in your Vim (or Neovim) config | |
| " directory. | |
| " | |
| " Reimplementation of https://github.com/aaron-p1/match-visual.nvim | |
| " | |
| " Requires the function `getregion`, you have it if this expression prints 1: | |
| " | |
| " echo exists('*getregion') | |
| " | |
| if !exists('*getregion') |