Skip to content

Instantly share code, notes, and snippets.

View nameoverflow's full-sized avatar
💩
Overfitting

nameoverflow

💩
Overfitting
View GitHub Profile
@nameoverflow
nameoverflow / wubi98.custom.yaml
Last active August 15, 2018 09:17
自用 RIME 五笔 98 方案
patch:
"menu/alternative_select_labels":
- ""
- ""
- ""
- ""
"menu/page_size": 4
@nameoverflow
nameoverflow / weasel.custom.yaml
Last active October 20, 2019 06:33
小狼毫高仿 Win10 内置输入法
patch:
preset_color_schemes/metro:
back_color: 0xffffff
border_color: 0x444444
hilited_back_color: 0xffffff
hilited_candidate_back_color: 0x444444
hilited_candidate_text_color: 0xffffff
hilited_text_color: 0x000000
name: "metro"
text_color: 0x000000
@nameoverflow
nameoverflow / doM.ts
Last active December 23, 2018 06:32
Monad-like do-notation in TypeScript
export interface Monad<T> {
mbind<U>(t: (T) => Monad<U>): Monad<U>
mreturn<U>(v: U): Monad<U>
}
abstract class Maybe<T> implements Monad<T> {
abstract mbind<U>(t: (T) => Maybe<U>): Maybe<U>
mreturn<U>(v: U): Maybe<U> {
return new Just(v)
}
@nameoverflow
nameoverflow / handPainting.js
Created November 4, 2016 11:26
handPainting
function mouseDown(e){
this.draw=true;
this.ctx = this.getContext("2d");
this.ctx.strokeStyle='#000000';
this.ctx.lineWidth=2;
var o=this;
this.offsetX=this.offsetLeft;
this.offsetY=this.offsetTop;
getOffsetTop = (el) ->
y = 0
while el.offsetParent
y += el.offsetTop
el = el.offsetParent
return +y
window.NScroll = (selector, option) ->
option = option || {}
option.width = option.width || 5
option.bgc = option.bgc || null
@nameoverflow
nameoverflow / index.js
Last active August 29, 2015 14:22 — forked from edokeh/index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@nameoverflow
nameoverflow / .vimrc
Last active June 18, 2019 06:21
VIMRC for neovim
call plug#begin('~/.vim/plugged')
Plug 'prabirshrestha/async.vim'
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
" (Optional) Multi-entry selection UI.
Plug 'junegunn/fzf'
" (Completion plugin option 1)
" Plug 'roxma/nvim-completion-manager'