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
{ | |
// =================== CONFIG: Basicas do vscode =================== | |
"workbench.startupEditor": "none", // <== Não abrir o arquivo de boas vindas | |
"screencastMode.onlyKeyboardShortcuts": true, | |
"breadcrumbs.enabled": true, | |
"window.zoomLevel": 0, | |
"workbench.sideBar.location": "left", // <== Posição da barra lateral | |
"workbench.iconTheme": "symbols", // <== Tema dos icones | |
"workbench.colorTheme": "Min Dark", | |
"workbench.productIconTheme": "fluent-icons", |
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
{ | |
// "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", | |
"explorer.confirmDelete": false, | |
"editor.wordWrap": "on", | |
// "editor.wordWrap": "wordWrapColumn", | |
"workbench.iconTheme": "vscode-icons", | |
"liveServer.settings.donotShowInfoMsg": true, | |
"editor.suggestSelection": "first", | |
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
"git.autofetch": true, |
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
elton@LAPTOP-36JNKUER MINGW64 /d/elton/Documents/Aplicacoes/gostack14/nivel5/desafio-react-native-delivery (master) | |
$ npx react-native run-android --variant=debug --deviceId emulator-5554 | |
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. | |
Jetifier found 1121 file(s) to forward-jetify. Using 12 workers... | |
info Starting JS server... | |
error No Android device or emulator connected. | |
elton@LAPTOP-36JNKUER MINGW64 /d/elton/Documents/Aplicacoes/gostack14/nivel5/desafio-react-native-delivery (master) | |
$ npx react-native run-android | |
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. |
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> | |
<html> | |
<head> | |
<title>Leaflet</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" | |
integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ==" crossorigin="" /> | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log==" |
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
@Entity | |
public class Endereco implements Serializable { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Integer id; | |
private String rua; | |
private String cep; | |
private String cidade; | |
private String estado; |
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
WITH | |
-- FILTRO | |
SET [~FILTER] AS | |
{[DIM_GEO_GEOGRAFIA_OPERA.Opera].[SIM]} | |
-- COLUNA | |
SET [~COLUMNS] | |
AS | |
{[DIM_PIM_PADRAO_IMOVEL.Padrao_Imovel].[ALTO], [DIM_PIM_PADRAO_IMOVEL.Padrao_Imovel].[BÁSICO], [DIM_PIM_PADRAO_IMOVEL.Padrao_Imovel].[MÉDIO]} | |
-- LINHA | |
SET [~ROWS_DIM_GEO_GEOGRAFIA_UAD_DIM_GEO_GEOGRAFIA_UAD.Unidade] |
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() { | |
var dimensoes_val, medidas_val; | |
$('#validacao_medida_id_val').parent().hide(); | |
$('#validacao_dimensao_id_val').parent().hide(); | |
medidas_val = $('#validacao_medida_id_val').html(); | |
dimensoes_val = $('#validacao_dimensao_id_val').html(); | |
console.log("medidas: "+medidas_val); | |
console.log("dimensoes: "+dimensoes_val); |
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() { | |
var dimensoes, medidas; | |
$('#validacao_medida_id').parent().hide(); | |
$('#validacao_dimensao_id').parent().hide(); | |
medidas = $('#validacao_medida_id').html(); | |
dimensoes = $('#validacao_dimensao_id').html(); | |
$(document.body).on('change', '#validacao_cubo_id', 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Testing sprites</title> | |
<script> | |
// SPRITESHEET | |
function Spritesheet(context, imagem, linhas, colunas) { | |
this.context = context; |
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
def pares(a, k) | |
count = 0 | |
a.combination(2).each{ |par| count += 1 if ((par[0] - par[1] == k) or (par[1] - par[0] == k)) } | |
count | |
end | |
puts "Digite o primeiro valor para N e o segundo valor para K, separados por espaço: (Exemplo: 5 3)" | |
a = gets.strip.split(" ").map! { |i| i.to_i } | |
k = a[1] |
NewerOlder