- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| # 除外するディレクトリ:.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' |
| <?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. | |
| */ |
ドキュメント:
$ 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 |
A usage scenario of the extended version of grunt.file.expandFiles that has the added feature of providing lists of:
src definition of the task (default option)src definition of the task that have been changed since the last iteration of the watch tasksrc definition of the task that have been deleted since the last iteration of the watch taskThe task execution would go something like this:
| #!/bin/bash | |
| # Open iPhone Simulator on default location for XCode 4.3 if found | |
| [[ -d /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] && | |
| open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app | |
| # Open iPhone Simulator on default location for XCode 4.2 if found | |
| [[ -d /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] && | |
| open /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app |
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
This gist assumes: