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
| 2014-08-14 14:14:37 BRT [alfa] LOG: executar pdo_stmt_00000003: SELECT | |
| a.attnum, | |
| n.nspname, | |
| c.relname, | |
| a.attname AS colname, | |
| t.typname AS type, | |
| a.atttypmod, | |
| FORMAT_TYPE(a.atttypid, a.atttypmod) AS complete_type, | |
| d.adsrc AS default_value, | |
| a.attnotnull AS notnull, |
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
| extern void object::Labyrinth() | |
| { | |
| object finish, barrier; | |
| while (true) { | |
| RideToClearSquare(); | |
| finish = LookForTheFinish(); | |
| if (finish != null) { | |
| break; | |
| } | |
| } |
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
| selectNfs: function(nfGrid, nf, item) { | |
| return false; | |
| var me = this, | |
| w = nfGrid.up('nfswindow'), | |
| cteNfGrid = w.getGrid(); | |
| // se não for o grid da janela de edicao do cte | |
| if (! (cteNfGrid instanceof S1.view.emission.cte.nf.Grid)) { | |
| return false; | |
| } |
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
| <p> | |
| <img src="http://placehold.it/350x65" style="float:left; margin-right: 10px;"> | |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eget mauris sollicitudin, placerat tellus in, sagittis lorem. Pellentesque pulvinar commodo risus in auctor. Praesent aliquet mi ac lectus dictum, a molestie felis sodales. Aenean at eros eu turpis auctor tristique quis vel lectus. Donec enim metus, lobortis ac laoreet et, mollis non enim. Donec tellus turpis, imperdiet quis nulla ut, interdum lacinia ipsum. Nunc in tellus nisl. Sed sed enim interdum, eleifend quam sit amet, porta felis. Duis sem mauris, eleifend vel tortor sit amet, aliquam pulvinar ante. Suspendisse vitae nisl at nisl eleifend scelerisque. Aenean vestibulum dui in hendrerit aliquam. Sed nec porttitor justo. Donec interdum mattis orci, eu dapibus libero mollis at. Ut fermentum dolor eu interdum dictum. | |
| </p> | |
| <p><i class="icon-double-angle-right"></i> <a href="http://example.com">Link</a></p> |
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 { | |
| height: 100%; | |
| } | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| font-family: "Consolas", "Menlo", "Ubuntu Mono", "Courier", monospace; | |
| font-size: 14px; | |
| color: #222; |
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
| A tabela addresses tem relação com as tabelas ctes e incomes pela FK address_id. | |
| Eu erroneamente configurei um ON DELETE CASCADE na tabela endereços. | |
| Ou seja, quando o usuário exclui um endereço ele deleta todos os documentos. | |
| Consertei isso checando se existe algum documento emitido com o endereço. | |
| Porém, a query está lenta, pois eu estou executando uma query separada só pra isso. |
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
| $(document).ready(function(){ | |
| $('#contact-form').validate({ | |
| submitHandler: function(form) { | |
| $(form).ajaxSubmit({ | |
| dataType: 'json', | |
| error: 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
| function initialize() { | |
| var geocoder = new google.maps.Geocoder(); | |
| var mapOptions = { | |
| zoom: 8, | |
| mapTypeId: google.maps.MapTypeId.ROADMAP | |
| }; | |
| var center = null; |
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
| Ext.form.TextFieldRemoteVal = function(config){ | |
| Ext.form.TextFieldRemoteVal.superclass.constructor.call(this, config); | |
| if( this.urlRemoteVal ) { | |
| if( this.remoteValidation == 'onValidate' ) { | |
| this.on('valid', this.startRemoteVal.createDelegate(this)); | |
| }else if( this.remoteValidation == 'onBlur' ) { | |
| this.on('blur', this.startRemoteVal.createDelegate(this)); | |
| } | |
| } | |
| }; |
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
| new Ext.form.TextFieldRemoteVal({ | |
| ... // Config object from TextField | |
| // New possibility | |
| remoteValidation: 'onValidate', // When start remote validation, value: 'onBlur' or 'onValidate' | |
| urlRemoteVal: 'url', // Url for remote validation | |
| method: 'POST', // Optional, method for remote validation 'GET' or 'POST', default POST | |
| paramsRemoteVal: { w: 'testPseudo' }, // Optional, additional parameter(s) (Object or String) | |
| timeout: 30, // Optional, timeout for validation request, default 30 | |
| badServerRespText: 'My text', // Optional, text showing after bad server response, default: 'Error: bad server response during validation' | |
| badComText: 'My text' // Optional, text showing after incorrect comunication, default: 'Error: validation unavailable' |