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
| [{ | |
| "countryName": "Afghanistan", | |
| "countryShortCode": "AF", | |
| "regions": [{ | |
| "name": "Badakhshan", | |
| "shortCode": "BDS" | |
| }, | |
| { | |
| "name": "Badghis", | |
| "shortCode": "BDG" |
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
| <!DOCTYPE html> | |
| <!-- | |
| Exemplo de como executar uma função PHP disparada por um botão simples através de JavaScript. | |
| --> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| <style> | |
| #formulario{ |
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
| # Disable menu bar transparency | |
| defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
| # Show remaining battery time; hide percentage | |
| defaults write com.apple.menuextra.battery ShowPercent -string "NO" | |
| defaults write com.apple.menuextra.battery ShowTime -string "YES" | |
| # Always show scrollbars | |
| defaults write NSGlobalDomain AppleShowScrollBars -string "Always" |
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
| localeIdentifier | Description | |
|---|---|---|
| eu | Basque | |
| hr_BA | Croatian (Bosnia & Herzegovina) | |
| en_CM | English (Cameroon) | |
| en_BI | English (Burundi) | |
| rw_RW | Kinyarwanda (Rwanda) | |
| ast | Asturian | |
| en_SZ | English (Swaziland) | |
| he_IL | Hebrew (Israel) | |
| ar | Arabic |
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
| COMPONENTE.ts | |
| -------------------------------------------- | |
| import { Component, OnInit } from '@angular/core'; | |
| import * as $ from 'jquery'; | |
| @Component({ |
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
| from flask import Flask | |
| from flask_restful import Api, Resource, reqparse | |
| app = Flask(__name__) | |
| api = Api(app) | |
| users = [ | |
| { | |
| "name": "Nicholas", | |
| "age": 42, |
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/bash | |
| ############################################################################## | |
| # SHORTCUTS | |
| ############################################################################## | |
| CTRL+A # move to beginning of line | |
| CTRL+B # moves backward one character | |
| CTRL+C # halts the current command | |
| CTRL+D # deletes one character backward or logs out of current session, similar to exit |
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
| Hints de Pesquisa | |
| CONHECENDO HINTS | |
| Otimizador do Oracle é incrivelmente preciso na escolha do caminho de otimização correto e no uso de índices para milhares de registros no seu sistema, porem exise casos que é preciso mudar. O ORACLE possui hints ou sugestões que você poderá usar para determinadas consultas, de modo que o otimizador seja desconsiderado, na esperança de conseguir melhor desempenho para determinada consulta. Os hints modificam o caminho de execução quando um otimizador processa uma instrução específica. O parâmetro OPTIMIZER_MODE de init.ora pode ser usado para modificar todas as instruções no banco de dados para que sigam um caminho de execução específico, mas um hint para um caminho de execução diferente substitui qualquer coisa que esteja especificada no init.ora. Contudo, a otimização baseada em custo não será usada se as tabelas não tiverem sido analisadas. | |
| Os hints podem ser muito úteis se soubermos quando e qual usar, mas eles podem ser maléficos se não forem utilizados na situação |
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
| View Materializada Conteúdo | |
| Seção 39, aula 94 | |
| Views Materializadas Utilizamos elas para fazermos cálculos, armazenamentos de dados e dar agilidade na troca de informações entre um banco de dados ou entre tabelas. Este recurso é muito utilizado em ambientes de Data Warehouse, que trabalha com uma enorme quantidade de informações. Pois com elas conseguimos melhorar a performance do sistema e trazer diversos benefícios ao Oracle. | |
| As Views Materializadas são utilizadas para fazer atualizações, a própria Oracle garante que as atualizações são feitas com sucesso numa tabela destinatária após terem sido efetivadas nas tabelas originais. Isso nos dá mais tranquilidade na administração e no desenvolvimento. | |
| Exemplo de como se faz uma Views Materializadas: | |
| CREATE MATERIALIZED VIEW VM_ALUNO BUILD IMMEDIATE REFRESH FAST ENABLE QUERY REWRITE AS (SELECT * FROM TALUNO WHERE CIDADE=’NOVO HAMBURGO’) BUILD IMMEDIATE |
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
| Estatísticas | |
| Coletando estatísticas para o otimizador de queries do Oracle | |
| Para que o Oracle monte planos de execução otimizados, é necessário que as estatísticas dos objetos estejam sempre atualizadas. Para atualizar as estatísticas dos objetos, podemos usar os métodos abaixo: | |
| Comando ANALYZE: | |
| - Calcula estatísticas globais de tabelas, índices e clusters; |