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 | |
| class X { | |
| } |
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
| https://tootsi.io |
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
| <script> var entity = {"id":9,"created":"2017-10-20T16:29:08+00:00","modified":"2017-10-20T16:29:08+00:00","tracker_issue_type_primary_id":1,"tracker_issue_type_secondary_id":2,"tracker_issue_type_tertiary_id":3,"sample":"fdfdsf","description":"sg dfg dfgd","claimed_amount":434234,"tracker_claim_type_id":1,"core_client_cod":"10001","core_product_cod":"010111020","core_plant_id":1,"core_color_cod":"CC","core_color_product_key":"VF065"}</script><script> var coreClients = [{"cod":"10001","name":"AIZENBERG MOISES JOSE","created":"2017-10-17T18:04:14+00:00","modified":"2017-10-17T18:04:14+00:00","core_client_type_id":1,"core_seller_id":1,"core_seller":{"id":1,"name":"vendedor 1","created":"2017-10-13T16:59:24+00:00","modified":"2017-10-13T16:59:24+00:00"},"core_client_type":{"id":1,"name":"externo","created":"2017-10-13T16:53:41+00:00","modified":"2017-10-13T16:53:41+00:00"}},{"cod":"10002","name":"ALGODONERA POTENZA","created":"2017-10-17T18:04:40+00:00","modified":"2017-10-17T18:04:40+00:00","core_client_type |
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
| HTML | |
| // Gurdamos la entidad del cake dentro de JS para que este disponible en Angular | |
| <?php $this->Html->scriptStart(['block' => 'scriptTop']); ?> | |
| var entity = <?=json_encode($trackerIssue->toArray()); ?> | |
| <?php $this->Html->scriptEnd(); ?> | |
| // Cargamos angular y el controller | |
| <?=$this->Html->script(['/bower_components/angular/angular.min.js', 'Tracker.issues_controller.js'], [ | |
| 'block' => 'scriptTop' |
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 ng-model="issue.core_client_cod" | |
| name="core_client_cod" | |
| ng-options="x.cod as x.name for x in issue.core_clients" | |
| ng-change = "getSellerByClient()" | |
| class="form-control" | |
| ng-required="true" | |
| required="required" | |
| id="core-client-cod"> | |
| <option value="?">(-Cliente-)</option> | |
| </select> |
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 -XGET 127.0.0.1:8080/api/items?page=1 | python -m json.tool | |
| { | |
| "data": [ | |
| { | |
| "title": "A.N.I.M.A.L. INTIMO Y EXTREMO" | |
| }, | |
| { | |
| "title": "ANA PRADA - DE RONDA" | |
| }, | |
| { |
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
| moses = require("moses") | |
| respond_to = require("lapis.application").respond_to | |
| request_validator = require("components.request_validator") | |
| do_match = (_, e, app) -> | |
| unless e.method | |
| e.method = { "DELETE", "GET", "HEAD", "POST", "PUT" } | |
| if type(e.method) == "string" | |
| e.method = { e.method } |
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
| const webpack = require("webpack"); | |
| const path = require("path"); | |
| const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
| const DashboardPlugin = require("webpack-dashboard/plugin"); | |
| const nodeEnv = process.env.NODE_ENV || "development"; | |
| const isProd = nodeEnv === "production"; | |
| var config = { | |
| devtool: isProd ? "hidden-source-map" : "source-map", | |
| context: path.resolve("./src"), |
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 | |
| namespace Cake\Routing\Route; | |
| use \Md\Utils; | |
| class SlugRoute extends Route | |
| { | |
| public function parse($url, $method = '') | |
| { | |
| $discountDeal = $this->matchDiscountDeal($url); | |
| if($discountDeal) { return $discountDeal; |
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 | |
| namespace App\Routing\Filter; | |
| use Cake\Event\Event; | |
| use Cake\Routing\DispatcherFilter; | |
| use Md\Utils\Seo; | |
| class ParametersFilter extends DispatcherFilter | |
| { |
NewerOlder