Skip to content

Instantly share code, notes, and snippets.

View senarukana's full-sized avatar

Zhe Li senarukana

View GitHub Profile
@senarukana
senarukana / cancel.java
Created November 9, 2016 13:05
cancelation in java
package com.indeed.taz.downloader;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.FluentIterable;
import org.springframework.core.task.AsyncTaskExecutor;
import org.springframework.core.task.SimpleAsyncTaskExecutor;
import java.io.IOException;
import java.util.ArrayList;
" Settings
set nohud
set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 50
let barposition = "bottom"
let locale = "jp" " Current choices are 'jp' and 'uk'. This allows cVim to use sites like google.co.uk
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
map('gt', 'T');
map('o', 't');
map('O', 'T');
map('H', 'S');