ドキュメント:
$ gem install vagrant
| username: vagrant | |
| password: vagrant | |
| sudo apt-get update | |
| sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
| sudo aptitude install mysql-server mysql-client | |
| sudo nano /etc/mysql/my.cnf |
ドキュメント:
$ gem install vagrant
| <?php | |
| /* | |
| This code sample demonstrates several style for representing an option array with | |
| the following fields: name, label, type_id, visible, default. | |
| When designing this we should keep in mind that the option key may be represented | |
| by either a literal or a (class)constant. As such we mix and match those for | |
| illustrative purposes. | |
| */ |
| # 除外するディレクトリ:.svn, vendors, data, tmp, tests | |
| # ファイル一覧を表示 | |
| find ./ -type d \( -name '.svn' -o -name 'vendors' -o -name 'data' -o -name 'tmp' -o -name 'tests' \) -prune -o -type f -print | |
| # ファイル名(*.php)で絞り込み | |
| find ./ -type d \( -name '.svn' -o -name 'vendors' -o -name 'data' -o -name 'tmp' -o -name 'tests' \) -prune -o -type f -name '*.php' -print | |
| # 複数のディレクトリをまたいだファイルの一括検索 | |
| find ./ -type d \( -name '.svn' -o -name 'vendors' -o -name 'data' -o -name 'tmp' -o -name 'tests' \) -prune -o -type f -name '*.php' -print | xargs grep 'test_string' |
| //PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov anton.al.ivanov@gmail.com 2012 | |
| //UPDATE: This gist has been made into a Node.js module and now can be installed with "npm install js-crawler" | |
| //the Node.js version does not use Phantom.JS, but the API available to the client is similar to the present gist | |
| (function(host) { | |
| function Crawler() { | |
| this.visitedURLs = {}; | |
| }; | |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Ajax Page</title> | |
| </head> | |
| <body style="background-color: #fff;"> | |
| <h1>Ajax的にナニかするよー</h1> | |
| <div id="content"> | |
| <p>loading...</p> | |
| </div> |
第4のCSSプリプロセッサ「Roole」(v0.1.3)をGruntで自動化してみるメモ。
Rooleのgruntプラグインはまだないので、野良タスク(オリジナルのタスク)を作って直接rooleコマンドを叩く。
こんな感じのpackage.jsonをプロジェクトディレクトリに用意。