For example, with org extension we can headers as this:’
A | This is the sea |
B | And this is not |
#!/usr/bin/bash | |
# replace the next line with the location of your addon | |
MDIR=/home/dmg/.local/share/Anki2/addons21/MecabUnidic/support | |
export LD_LIBRARY_PATH=$MDIR: | |
export DYLD_LIBRARY_PATH=$MDIR: | |
#$MDIR/mecab.lin --eos-format='\n' --unk-format='' -d $MDIR -r $MDIR/mecabrc "$1" | |
# MECAB_NODE_UNIDIC_22_PARTS = ['%f[7]', '%f[10]', '%m', '%f[6]', '%f[0]', '%f[1]'] | |
# i swapped the location of %m to first column | |
#$MDIR/mecab.lin -P | |
$MDIR/mecab.lin --eos-format='\t\t\t\tEOS\tEOS\n' --unk-format='%M\t%f[0]\t%M\t%f[1]\tunknown\tunknown\n' --node-format='%f[7]\t%f[10]\t%m\t%f[6]\t%f[0]\t%f[1]\n' -d $MDIR -r $MDIR/mecabrc "$1" |
#include <iostream> | |
#include <vector> | |
int main() | |
{ | |
std::vector < // I want a vector | |
std::vector<double> // each element of the vector is a vector | |
> variableName // name of the vector | |
(5, // how many elements in the frist dimension | |
std::vector<double>(2) // It knows each element is a vector (the subvectors. Here we say exactly | |
// what size each subvector to create |
#!/bin/bash | |
filename=$1 | |
size=`stat -L "$filename" -c "%s"` | |
pv -s $size "$filename" | bzip2 -c > "$filename.bz2" |
## reproduce the figures from http://www.jstatsoft.org/v28/c01/paper using ggplot2 | |
library(ggplot2) | |
## parameters | |
set.seed(2710) | |
## Figure 1 | |
d <- rnorm(50) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <string.h> | |
#include <ctype.h> | |
// return a pointer to the first character that does not satisfy the function f | |
// or a pointer to the end of the string | |
char *skip(char *st, int (f)(char)) |
object words { | |
def main(args: Array[String]): Unit = { | |
println( | |
"ButterBeer".foldLeft (new scala.collection.mutable.HashMap[Char, Int]().withDefaultValue(0)) | |
{ (h,c) => h.updated(c, h(c) + 1) }. | |
retain((_,v) => v > 1). | |
mkString("\n") | |
); | |
} |
# Copyright (C) 2013 The Debsources developers <info@sources.debian.net>. | |
# See the AUTHORS file at the top-level directory of this distribution and at | |
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=AUTHORS;hb=HEAD | |
# | |
# This file is part of Debsources. Debsources is free software: you can | |
# redistribute it and/or modify it under the terms of the GNU Affero General | |
# Public License as published by the Free Software Foundation, either version 3 | |
# of the License, or (at your option) any later version. For more information | |
# see the COPYING file at the top-level directory of this distribution and at | |
# https://anonscm.debian.org/gitweb/?p=qa/debsources.git;a=blob;f=COPYING;hb=HEAD |
This is a full set of key bindings (as of Vimium v1.45); covering all Vimium functionality. I have tried to map all Vimium functionality to comparable Emacs functionality (whenever possible). In cases where there is no equivalent, those commands are prefixed by <c-g>
(indicating <c-g>
oogle Chrome; and because <c-g>
does not conflict with other Emacs shortcuts at all).
Commented Shortcuts: There are a few Emacs-style shortcuts that are simply not possible in Vimium. All of my shortcuts (including those which were not possible; i.e. where I used a decent alternative) have been commented below. This should help to clarify my rationale.
_Compatibility: All of these shortcuts were tested on Mac OS X (Mavericks). Please note that all of my shortcuts operate under the assumption that your Emacs Meta key is the ⌥
Alt/Option key. This really was my only choice, because the ⌘
key is already used in Chrome for shortcuts that c