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
| $ curl -s "https://codan.local../api/filtered.json" | gzip -> out.json; gzip --list out.json | |
| compressed uncompressed ratio uncompressed_name | |
| 17.9 KB 381.4 KB 95.3% out.json |
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
| SELECT `Salesperson`.`id`, | |
| `Salesperson`.`company_id`, | |
| (SELECT Sum(project_item_allocations.amount / | |
| project_items.salesperson_count) | |
| FROM project_item_allocations | |
| JOIN project_item_sellers | |
| ON ( project_item_allocations.project_item_id = | |
| project_item_sellers.project_item_id ) | |
| JOIN project_items | |
| ON ( project_items.id = project_item_sellers.project_item_id ) |
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
| #in your beforeFilter | |
| $this->Crud->on('afterSave', function(CakeEvent $event){ | |
| if($event->subject->success){ | |
| pr($event->subject->id); | |
| } | |
| }); |
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
| # browser compatibility config | |
| \Configure::write('Browser', array( | |
| 'minimum_requirement' => array( | |
| 'Chrome' => 36, | |
| 'Firefox' => 22, | |
| 'Safari' => 5, | |
| 'IE' => 9 | |
| ) |
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
| if (!window.console) { | |
| window.console = {}; | |
| var methods = ['log', 'debug', 'info', 'error'], count = methods.length; | |
| while (count--) | |
| window.console[methods[count]] = function () {}; | |
| } |
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
| # create a test branch under github:export | |
| # https://github.com/nodesagency/cakephp-export | |
| > cd htdocs/app/Plugin/Export | |
| > git co -b a-test-branch | |
| > git push -u origin a-test-branch |
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
| #create a test branch under github:export | |
| > cd htdocs/app/Plugin/Export | |
| > git co -b a-test-branch | |
| > git push -u origin a-test-branch |
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
| #create a test branch under github:export | |
| > cd htdocs/app/Plugin/Export | |
| > git co -b a-test-branch | |
| > git push -u origin a-test-branch |
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
| > cd htdocs/app/Plugin/Export | |
| > git co -b a-test-branch | |
| > git push -u origin a-test-branch |
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
| > cd htdocs/app/Plugin/Export | |
| > git co -b a-test-branch | |
| > git push -u origin a-test-branch |