Skip to content

Instantly share code, notes, and snippets.

View n0mimono's full-sized avatar

Ryota Yokote n0mimono

View GitHub Profile
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
export LANG=ja_JP.UTF-8
# 色を使用出来るようにする
@n0mimono
n0mimono / proxy_call.py
Created June 4, 2015 04:46
Call command via python
#!/usr/bin/python
# -*- coding: utf-8 -*-
from subprocess import call
import sys
if __name__ == '__main__':
call(sys.argv[1:])
@n0mimono
n0mimono / rush_vimrc
Last active August 29, 2015 14:22
Rush work
set number
colorscheme molokai
syntax on
"html
autocmd FileType html inoremap <silent> <buffer> </ </<C-x><C-o>
"neobundle
set runtimepath+=~/.vim/bundle/neobundle.vim/
call neobundle#begin(expand('~/.vim/bundle/'))
@n0mimono
n0mimono / gist_markdown.md
Last active August 29, 2015 14:22
Markdown description trial

GistによるMarkdown表記

日本語を打つときに変になる。

@n0mimono
n0mimono / git_diff_head.py
Last active August 29, 2015 14:22
git diff HEAD\^ HEAD
#!/usr/bin/python
# -*- coding: utf-8 -*-
from subprocess import call
import sys
if __name__ == '__main__':
if len(sys.argv) == 1:
old_n = 1
@n0mimono
n0mimono / MyLinq.cs
Created June 9, 2015 12:00
My LINQ for C#
public static class MyLinq {
public static IEnumerable<TResult> MySelect<T,TResult>(this IEnumerable<T> e, System.Func<T, TResult> selector) {
foreach (T val in e) {
TResult res = selector (val);
yield return res;
}
}
public static List<T> MyToList<T>(this IEnumerable<T> e) {
@n0mimono
n0mimono / my-doxygen.sh
Created June 15, 2015 11:54
Doxygen & Graphviz
brew install doxygen graphviz
doxygen -g
vim DoxyFile
doxygen
[alias]
st = status
br = branch
unstage = reset HEAD
cancel = reset --soft HEAD^
del = !git rm $(git ls-files --deleted)
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
# Autogenerated VS/MD solution and project files
/*.csproj
/*.unityproj
/*.sln
/*.suo
/*.user
/*.userprefs
public class FlickHandler : MonoBehaviour, IPointerDownHandler, IPointerUpHandler {
[System.Serializable]
public class DetectThreshold {
public float minDistance;
public float maxDistance;
public float deltaTime;
public float deltaAng;
}
public DetectThreshold threshold;