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
| # app/controllers/application_controller.rb | |
| class ApplicationController < ActionController::Base | |
| protected | |
| # for datatables | |
| def page | |
| params[:iDisplayStart].to_i/per_page + 1 | |
| end |
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
| // | |
| // Backbone.Rails.js | |
| // | |
| // Makes Backbone.js play nicely with the default Rails setup, i.e., | |
| // no need to set | |
| // ActiveRecord::Base.include_root_in_json = false | |
| // and build all of your models directly from `params` rather than | |
| // `params[:model]`. | |
| // | |
| // Load this file after backbone.js and before your application JS. |
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
| <project name="CakePHP" default="build"> | |
| <target name="clean"> | |
| <delete dir="build" /> | |
| </target> | |
| <target name="prepare"> | |
| <mkdir dir="build/junit" /> | |
| <mkdir dir="build/logs" /> | |
| <chmod perm="a+rw"> | |
| <fileset dir="app/tmp" /> |
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/sh | |
| # Creating temp dirs | |
| mkdir .compile_PHPUnit_$$ | |
| cd .compile_PHPUnit_$$ | |
| # Fetching the archives | |
| wget -nv http://pear.phpunit.de/get/PHPUnit-3.5.15.tgz | |
| wget -nv http://pear.phpunit.de/get/DbUnit-1.0.0.tgz | |
| wget -nv http://pear.phpunit.de/get/File_Iterator-1.2.3.tgz |
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
| # put this into .htaccess to disable eAccelerator | |
| # especially for RecessFramework | |
| php_flag eaccelerator.enable 0 | |
| php_flag eaccelerator.optimizer 0 |
NewerOlder