This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
| nnoremap <silent> <Leader>a :set opfunc=<SID>Append<CR>g@ | |
| nnoremap <silent> <Leader>i :set opfunc=<SID>Insert<CR>g@ | |
| fun! s:Append(type,...) | |
| call feedkeys( a:type == 'char' ? "`]a" : "`]o" , 'tn') | |
| endf | |
| fun! s:Insert(type,...) | |
| call feedkeys( a:type == 'char' ? "`[i" : "`[O" , 'tn') | |
| endf |
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
| function openSpecialFolder(aFolderType) { | |
| var dirService = Components.classes['@mozilla.org/file/directory_service;1'] | |
| .getService(Components.interfaces.nsIProperties); | |
| var dir = dirService.get(aFolderType, Components.interfaces.nsIFile); | |
| var iDirectory = getLocalFileInterface(dir.path); | |
| try { | |
| iDirectory.reveal(); | |
| } catch (ex) { | |
| // if reveal failed for some reason (eg on unix it's not currently |
| /* | |
| bugmenot.js | |
| Queries bugmenot.com for the current page, populates login information and submits. | |
| Written by Victor Shih (vshih at yahoo.com, http://blog.vicshih.com/2009/04/bugmenot-command-for-ubiquity.html) | |
| Initial idea and some code from Onur Yalazı (onur@yalazi.org, http://www.yalazi.org/ubiquity) and Brandon Goldsworthy. | |
| */ | |
| const MIN_RATE_PERCENT = 50; // only show entries that rate 50% or more |
| var noun_type_gmCommand = { | |
| _name: "GM command name", | |
| // Returns all GM commands available for the current page. | |
| getCommands: function(){ | |
| var commands= {}; | |
| var menuitems = jQuery(context.chromeWindow.document) | |
| .find('\x23userscript-commands-sb > menupopup > menuitem') | |
| .get(); |