This file contains hidden or 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/bash | |
# | |
# git-feature-start - Git リポジトリディレクトリで、指定したブランチ名でブランチを作成し、合わせてリモートブランチも作成するコマンド | |
# | |
pushd `dirname $0` >/dev/null 2>&1 | |
[ $? -eq 1 ] && exit 1 | |
__script_dir=`pwd` | |
popd >/dev/null 2>&1 | |
__base_dir=`dirname ${__script_dir}` |
This file contains hidden or 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
history | tail -n 1 -q | awk '$1=""; {print}' | pbcopy |
This file contains hidden or 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/node | |
// via http://starwing.net/suddenly_death.html | |
String.prototype.lengthByte = function() | |
{ | |
var str = this; | |
var r = 0; | |
for (var i = 0; i < str.length; i++) { | |
var c = str.charCodeAt(i); |