Skip to content

Instantly share code, notes, and snippets.

View nekolinuxblog's full-sized avatar

nekolinuxblog

View GitHub Profile
if &compatible
set nocompatible
endif
"dein.vimディレクトリをruntimepathに追加する
set runtimepath+=~/vimfiles/bundles/repos/github.com/Shougo/dein.vim
"以下定型文
if dein#load_state("~/vimfiles/bundles")
call dein#begin("~/vimfiles/bundles")
@nekolinuxblog
nekolinuxblog / 20170907vimrc.vim
Last active September 7, 2017 02:26
things you should write in .vimrc in the first
"vimrcへの書き込み
nnoremap <F5> :<C-u>split $MYVIMRC<CR>
nnoremap <F6> :<C-u>source $MYVIMRC<CR>
"コマンドモードを1.5倍速で
noremap ; :
noremap : ;
"バッファ操作ショートカット
nnoremap <Space>l :ls<CR>:buf
<?xml version="1.0" encoding="UTF-8" ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<b:skin></b:skin>
</head>
<body>
<b:section id='mainSection'>
<b:widget id="Blog1" type="Blog">
<b:includable id="main">
body {
font-family: Verdana "游ゴシック" YuGothic "ヒラギノ角ゴ ProN W3" "Hiragino Kaku Gothic ProN" "メイリオ" Meiryo sans-serif;
font-size: 14px;
line-height: 22px;
word-wrap: break-word;
}
.entry-content h4 {
font-size: 100%;
border-bottom: 1px solid #426579;
# color設定
export LSCOLORS=exfxcxdxbxegedabagacad
zstyle ':completion:*' list-colors di=34 ln=35 ex=31
zstyle ':completion:*:kill:*' list-colors \
'=(#b) #([0-9]#)*( *[a-z])*=34=31=33'
# 一覧表示の形式設定
zstyle ':completion:*' group-name ''
zstyle ':completion:*:descriptions' format '%BCompleting%b %U%d%u'
pre.commandline {
/*fontの指定(google web font)*/
font-family: 'Source Code Pro' ;
/*境界との位置関係を調整*/
margin: 0px 0px 0px 0px;
padding: 5px 0px 5px 5px;
border: 1px solid #7a7a7a;
@nekolinuxblog
nekolinuxblog / my_template.cpp
Last active August 29, 2015 14:07
greedのカスタマイズ
#include <bits/stdc++.h>
using namespace std;
//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
//typedef
//------------------------------------------
@nekolinuxblog
nekolinuxblog / part_of_neobundle_config
Created December 30, 2013 03:56
vimrcにするneobundleようの設定部分
if has('vim_starting')
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#rc(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
" 以下にインストールするプラグインを並べていく
@nekolinuxblog
nekolinuxblog / vimrc001
Created December 30, 2013 03:15
その15 vimrc基本
set number
syntax on
set smartindent
set nobackup
set laststatus=2
set tabstop=4
@nekolinuxblog
nekolinuxblog / blog014_003.hs
Created December 23, 2013 05:27
(その14)拡張
data Human = Human {h_name :: String}
data Neko = Neko {n_name :: String}
data Inu = Inu {i_name :: String}
class Aisatu a where
hello :: a -> String
goodMorning :: a -> String
goodNight :: a -> String
instance Aisatu Human where