This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |