Skip to content

Instantly share code, notes, and snippets.

View eltonsantos's full-sized avatar
👨‍💻
Learning and developing

Elton Santos eltonsantos

👨‍💻
Learning and developing
View GitHub Profile
@eltonsantos
eltonsantos / settings.json
Created May 14, 2023 02:34
Backup of the Settings.json 2023
{
// =================== 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",
@eltonsantos
eltonsantos / settings.json
Last active May 14, 2023 02:34
Backup do meu Settings.json 2022
{
// "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,
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.
@eltonsantos
eltonsantos / index.html
Created March 8, 2018 19:18
Trying WMS with leaflet
<!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/leaflet@1.2.0/dist/leaflet.css"
integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ==" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js" integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log=="
@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;
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]
$(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);
$(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() {
<!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;
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]