Skip to content

Instantly share code, notes, and snippets.

indam

Block or report user

Report or block indam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@indam
indam / __main__.py
Created Feb 27, 2018 — forked from drgarcia1986/__main__.py
Example of OAuth2 autentication server with Client Credentials grant (using python-oauth2 and tornado)
View __main__.py
# !/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
View gist:f969c46882501518742c
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')
View gist:3a4ee582e5174023e106
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/*","http://172.31.1.96:8898/*"]
let hintcharacters = "asdfqwerzxcv" " only use left hand to do navigation
map q H
map a L
map c K
map z J
You can’t perform that action at this time.