Skip to content

Instantly share code, notes, and snippets.

💩
Overfitting

nameoverflow

💩
Overfitting
Block or report user

Report or block nameoverflow

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
@nameoverflow
nameoverflow / wubi98.custom.yaml
Last active Aug 15, 2018
自用 RIME 五笔 98 方案
View wubi98.custom.yaml
patch:
"menu/alternative_select_labels":
- ""
- ""
- ""
- ""
"menu/page_size": 4
@nameoverflow
nameoverflow / weasel.custom.yaml
Last active Feb 20, 2019
小狼毫高仿 Win10 内置输入法
View weasel.custom.yaml
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 Dec 23, 2018
Monad-like do-notation in TypeScript
View doM.ts
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)
}
View handPainting.js
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;
View scroll.coffee
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
View index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@nameoverflow
nameoverflow / .vimrc
Last active Jun 18, 2019
VIMRC for neovim
View .vimrc
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'
You can’t perform that action at this time.