Skip to content

Instantly share code, notes, and snippets.

set linkanimations
let searchlimit = 10 " to many lines will block your sight
let searchengine wikipedia = ['https://zh.wikipedia.org', 'https://zh.wikipedia.org/wiki/%s']
let completionengines = ['google', 'bing', 'wikipedia', 'google-image', 'youtube', 'wolframalpha']
let blacklists = ["https://mail.google.com/*","https://inbox.google.com/*","https://mmm.cern.ch/owa/*","http://theoldreader.com/*","https://172.31.1.96:8898/*","http://localhost:8888/*", "https://console.inspures.com/luna/*"]
let hintcharacters = "asdfqwerzxcv" " only use left hand to do navigation
map q H
map a L
map c K
map z J
@indam
indam / surfingkeys-config
Last active February 16, 2020 04:52
surfingkeys-config
// 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');
// an example to remove mapkey `Ctrl-i`
//unmap('<Ctrl-i>');
@indam
indam / __main__.py
Created February 27, 2018 07:19 — forked from drgarcia1986/__main__.py
Example of OAuth2 autentication server with Client Credentials grant (using python-oauth2 and tornado)
# !/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Diego Garcia'
import tornado.web
import tornado.ioloop
import oauth2.tokengenerator
import oauth2.grant
import oauth2.store.redisdb
import oauth2.store.mongodb
from PIL import Image
size = width, height = (40, 20)
image = Image.new("RGB", size, None)
pixels = image.load()
for y in range(height):
for x in range(width):
pixels[x, y] = (x, y, 0)
image.save('fill.jpg')