$ npm install nroonga
[Snip]
npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
> [email protected] install /Users/myuser/dev/nrn/node_modules/nroonga
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
# A sample Gemfile | |
source "http://rubygems.org" | |
path 'vendor/bundle' | |
gem "heroku" | |
gem "foreman" |
CakeEventManagerについて、ソースコードを読んで分かった事を、それでも全部を読み切ってはないので、予想も含めつつまとめます。
CakeEventManagerは、アプリケーション全体のイベントを管理する、グローバルマネージャーとしてシングルトン風に生成される。同時に、互いに干渉しない、ローカルマネージャーの生成も行える。 CakePHPのコードをgrepした所、Model, View, Controller, Dispatcherがそれぞれローカルマネージャーを持っていて、互いに干渉しない作りとなっている。ただし、グローバルマネージャーは、どのローカルマネージャーがdispatch()しても、必ずイベントを発火させる。
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
# phpタグと改行 | |
## phpタグ後に文字が有る場合は問題が無い | |
### php code | |
<?php echo "PHP"; ?>text | |
<?php echo "PHP"; ?> | |
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
<?php | |
/** | |
* Template Task can generate templated output Used in other Tasks | |
* | |
* PHP 5 | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
* | |
* Licensed under The MIT License |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Archive::Zip; | |
use Encode; | |
if (@ARGV == 0) { | |
die "usage: $0 ZIPFILE\n"; | |
} |
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
port "6600" | |
playlist_directory "~/.mpd/playlists" | |
music_directory "~/.mpd/music" | |
db_file "~/.mpd/mpd.db" | |
log_file "~/.mpd/mpd.log" | |
pid_file "~/.mpd/pid" | |
state_file "~/.mpd/state" | |
#bind_to_address "127.0.0.1" #does not work | |
bind_to_address "0.0.0.0" | |
#bind_to_address "any" #does not work |
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
use feature qw/say/; | |
use Encode; | |
use Archive::Zip qw( :ERROR_CODES :CONSTANTS ); #http://memememomo.hatenablog.com/entry/20100422/1271894685 | |
use XML::Simple; | |
use Tie::IxHash; #http://blog.dealforest.net/2009/09/xml-parse-in-order/ | |
use Path::Class; | |
use HTML::TreeBuilder::XPath; #http://blog.64p.org/entry/20100607/1275878274 | |
use HTML::Selector::XPath 'selector_to_xpath'; |