Summary
PHPのパッケージ管理マネージャ Composer を導入する。Install (Linux)
% curl -sS https://getcomposer.org/installer | php
% mv composer.phar /path/to/composer
Install (Homebrew)
% brew install composer
Reference
Composerhttps://getcomposer.org/
% curl -sS https://getcomposer.org/installer | php
% mv composer.phar /path/to/composer
% brew install composer
% brew install pyenv pyenv-virtualenv
# pyenv
eval "$(pyenv init -)"
if [[ -d $HOME/.pyenv ]]; then
export PATH="$HOME/.pyenv/shims:$PATH"
fi
% git clone git://github.com/phpenv/phpenv.git .phpenv
% $HOME/.phpenv/bin/phpenv-install-all-darwin
# phpenv
eval "$(phpenv init -)"
if [[ -d $HOME/.phpenv ]]; then
export PATH="$HOME/.phpenv/bin:$HOME/.phpenv/shims:$PATH"
fi
% cd $HOME/.phpenv/shims
% cp php php-fpm
% cd $HOME/.phpenv/versions/X.X.X/bin
% ln -s php-fpm ../sbin/php-fpm
% brew install perl-build plenv
% plenv install-cpanm
# plenv
eval "$(plenv init -)"
if [[ -d $HOME/.plenv/shims ]]; then
export PATH="$HOME/.plenv/shims:$PATH"
fi
% plenv install 5.18.2
% plenv global 5.18.2
% which perl
$HOME/.plenv/shims/perl
% which cpanm
$HOME/.plenv/shims/cpanm
######################
# Webページのスクリーンショットを挿入する
# usage: {{screenshot('URL')}}
sub screenshot{
my ($url) = @_;
my $width = 400;
my $enc = URI::Escape::uri_escape($url);
return qq(<a href="$url"><img src="http://s.wordpress.com/mshots/v1/$enc?w=$width"></a>);
}
% brew tap splhack/homebrew-splhack
% brew install --HEAD cmigemo-mk
% brew install --HEAD ctags-objc-ja
% brew install gettext-mk
% brew unlink cmigemo ctags
% brew link cmigemo-mk ctags-abjc-ja
% brew install --HEAD macvim-kaoriya
==> Cloning https://github.com/splhack/macvim.git
Updating /Library/Caches/Homebrew/macvim-kaoriya--git
Error: /usr/local/Cellar/python3/3.3.2/bin/python3
% brew edit macvim-kaoriya
29行目あたり
"#{HOMEBREW_PREFIX}/Cellar/python3/3.3.2/bin/python3",
"#{HOMEBREW_PREFIX}/Cellar/ruby/2.0.0-p247/bin/ruby20",
% brew install macvim-kaoriya
url('path/to/contents', array('https' => true))
$conf = array(
'https' => true,
);
list = [
{"from": datetime(2014,2,1,0,0,0), "what": "....." },
{"from": datetime(2014,1,1,0,0,0), "what": "....." },
{"from": datetime(2014,1,2,0,0,0), "what": "....." },
]
list.sort(cmp=lambda x,y: cmp(x["from"],y["from"]))
brew tap phinze/homebrew-cask
brew install brew-cask
brew cask search textmate
==> Exact match
textmate
brew cask install textmate
==> Downloading http://api.textmate.org/downloads/release
######################################################################## 100.0%
==> Symlinking App 'TextMate.app' to '/Users/yoshiki/Applications/TextMate.app'
🍺 textmate installed to '/opt/homebrew-cask/Caskroom/textmate/latest' (340 files, 31M)
export HOMEBREW_CASK_OPTS="--appdir=/Applications --caskroom=/usr/local/Caskroom"
$ brew cask alfred link
NeoBundle 'stephencelis/vim-mml'
autocmd FileType mml nnoremap <Leader>m :MmlMake<CR>
:NeoBundleInstall
Nestopia か
Audio Overload をインストールしておくと、
:w :MmlMake で自動的に再生してくれる。
% unzip ppmck09a.zip
if which nkf > /dev/null; then
nkf --overwrite -w -Lu *.c *.h
else
% cd mck/src
% sh ./compile_unix.sh
% cd mck/songs
% sh ./mknfs sample_auto_bank
MML to MCK Data Converter Ver 0.27 by Manbow-J
pmck modification by BKC rel 0.2
patches FDS enable patch([OK]), 4-46, 4-356, 5-17, 5-95, 5-313, 5-658
ppmck release 9 by h7
sample_auto_bank.mml -> sample_auto_bank.h
-------+---------------+---------------+
Track | Total | Loop |
Symbol|(count)|(frame)|(count)|(frame)|
-------+-------+-------+-------+-------+
A | 192000 120000| |
B | 192006 120004| |
C | | |
D | | |
E | | |
-------+-------+-------+-------+-------+
終了しました
NES Assembler (v2.51)
pass 1
pass 2
segment usage:
ZP $0000-$001A [ 27]
BSS $0200-$02C9 [ 202]
USED/FREE
BANK 0 2369/5823
BANK 1 8180/ 12
BANK 2 8180/ 12
BANK 3 8180/ 12
BANK 4 8178/ 14
BANK 5 8180/ 12
BANK 6 8180/ 12
BANK 7 8180/ 12
BANK 8 6816/1376
---- ----
65K 7K
% /Applications/VLC.app/Contents/MacOS/VLC sample_auto_bank.nsf &