This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ZeroPadding. | |
* | |
* @param {String|Number} number | |
* @return {String} | |
* | |
* @example | |
* "009" = zeroPadding(9, 3); | |
*/ | |
function zeroPadding(number, size) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////// | |
// DrawCircle / DrawArc | |
// canvasに円を描く | |
// | |
// Copyright (c) 2010 Minoru Nakanow | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
// | |
// Usage: | |
// var circle = new DrawCircle(canvas); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////////////////////// | |
// PolarClock | |
// ポーラークロック | |
// | |
// Copyright (c) 2010 Minoru Nakanow | |
// Licensed under the MIT licenses. | |
// http://www.opensource.org/licenses/mit-license.html | |
// | |
// Usage: | |
// var point = new Point(120, 120, 120); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$#" -lt 2 ] | |
then | |
echo "usage: gitdiff [target] [export]" | |
echo "example: gitdiff master ../files" | |
exit 1 | |
fi | |
## Export directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////// | |
// loading | |
//////////////////////////////////////////////////////////////////////////////// | |
;(function(w, d, b) { | |
'use strict'; | |
//-------------------------------------------------------------------------- | |
// Variables | |
//-------------------------------------------------------------------------- | |
var isMSIE = /*@cc_on!@*/false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////// | |
// EventDispatcher.js | |
//////////////////////////////////////////////////////////////////////////////// | |
;namespace.event.EventDispatcher = (function(win, doc, ns) | |
{ | |
"use strict"; | |
//-------------------------------------------------------------------------- | |
// Import | |
//-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ‾/.bashrc ]; then . ‾/.bashrc | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Alias | |
alias safari='open -a safari' | |
alias apastart='sudo /usr/sbin/apachectl start' | |
alias apastop='sudo /usr/sbin/apachectl stop' | |
alias apare='sudo /usr/sbin/apachectl restart' | |
#Git settings | |
source /usr/local/Cellar/git/1.7.9.2/etc/bash_completion.d/git-completion.bash | |
GIT_PS1_SHOWDIRTYSTATE=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[color] | |
ui = auto | |
[user] | |
name = minoru nakanou | |
email = [email protected] | |
[alias] | |
ci = commit | |
co = checkout | |
st = status | |
br = branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
.sass-cache/ | |
.idea/ |