Skip to content

Instantly share code, notes, and snippets.

View noblejasper's full-sized avatar
🐇
CTO風

noblejasper noblejasper

🐇
CTO風
View GitHub Profile
@fujimisakari
fujimisakari / csharp-checker.sh
Last active September 4, 2015 09:09
EmacsでUnity開発(c#)するための環境構築 ref: http://qiita.com/fujimisakari/items/d043a2fae31ed740e290
#! /bin/bash
# シンタックスチェック
/usr/bin/mcs -r:/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll,/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll,~/projects/proj1/Library/ScriptAssemblies/Assembly-CSharp.dll,~/projects/proj1/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll $1 -target:library
dll_file=`echo $1 | sed -e "s/\.cs/.dll/"`
ls ${dll_file} && rm ${dll_file}
# コードスタイルチェック
/usr/bin/mono ~/.emacs.d/bin/StyleCopCLI.exe -cs $PWD/$1 -out /tmp/stylecop.log
# エラーとして扱いたくないものは、grepに追加していく
@irasally
irasally / run.sh
Created October 3, 2012 05:07
[mongodb] run command 'compact' for all collections
#!/bin/sh
mongo localhost:27017/mongo run_command.js
mongo localhost:27018/mongo run_command.js
mongo localhost:27019/mongo run_command.js
# if you don't need connection infomation etc., use --quiet option.
# http://www.mongodb.org/display/DOCS/--quiet
@asus4
asus4 / TouchToMouseConverter.cs
Last active September 29, 2015 21:57
TouchEvent to MouseEvent for Unity
/**
Converts Mobile Touch to the default Mouse Click
## invoked these method in Mobile too
OnMouseDown
OnMouseDrag
OnMouseUp
## only called in touch screen