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.
/*==uc/== | |
@name Tabbar at the bottom | |
@author esquifit | |
@description In FF4+ places tabbar at the bottom of the main content | |
@include main | |
@compatibility Firefox 4.0+ | |
@version 2011-08-28 | |
==/uc==*/ | |
// This code is shamelessly stolen from Tab Mix Plus: |
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 |
CmdUtils.CreateCommand({ | |
name: "qr_code", | |
homepage: "http://yonen.ca/", | |
author: { name: "Jessy Ouellette", email: "jessy.ouellette@gmail.com"}, | |
takes: {"text": noun_arb_text}, | |
_getQRCodeUrl: function(QRText) { | |
var QRCodeUrl = "http://qrcode.kaywa.com/code/"; | |
return QRCodeUrl + QRText.text; |
/* | |
* Open file:/// url in editor | |
* | |
* This jetpack adds an option 'Open in editor' to the context menu of the location bar | |
* when a local file is loaded into Firefox. The path to the editor can be maintained | |
* as a jetpack setting. To set it to your editor of choice proceed as follows: | |
* 1) in about:jetpack select 'installed features' | |
* 2) click on 'settings' next to the feature name | |
* 3) restart Firefox for the setting to take effect | |
* |
// ==UserScript== | |
// @name Artechock: Extended Info | |
// @namespace http://esquifit.myopenid.com/ | |
// @description Displays Country, Year and Duration of each movie | |
// @include http://www.artechock.de/film/muenchen/index* | |
// @include http://www.artechock.de/film/muenchen/film* | |
// @include http://www.artechock.de/film/muenchen/oton* | |
// @include http://www.artechock.de/film/bg/film.htm | |
// ==/UserScript== |
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 |