- Ctrl+Shfit+P: paleta de comandos
- Ctrl+p: pesquisa de arquivos
- Ctrl+Shift+F: pesquisa e replace global
- Ctrl+f: pesquisa e replace no arquivo atual
- Ctrl+Shift+K: remove a linha atual
- Ctrl + d: seleciona uma ocorrência do texto selecionado
- Alt+↑|↓: mover seleção atual de linhas
- Shift+↑|↓|←|→: aumentar a seleção na direçã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
| require_relative 'quickselect' | |
| require 'benchmark' | |
| array = (1..10_000_000).to_a.shuffle | |
| n = 100 | |
| p = 123_423 | |
| Benchmark.bmbm do |bench| | |
| bench.report('quicksort') do | |
| quicksort(array, 0, array.size - 1, LomutoPartition) |
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
| require 'benchmark/ips' | |
| Lambda = ->n { n.even? } | |
| Benchmark.ips do |x| | |
| x.report('map with lambda literal') { (1..1_000).map(&->n { n.even? }) } | |
| x.report('map with lambda constant') { (1..1_000).map(&Lambda) } | |
| x.report('map with block') { (1..1_000).map { |n| n.even? } } | |
| x.report('map with &') { (1..1_000).map(&:even?) } |
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
| module Pokecli::EntityFormatters | |
| class Pokemon | |
| Unslugify = ->name { name.tr('-', ' ').capitalize } | |
| StatFormatter = ->stat { "#{stat[0].capitalize}: #{stat[1]}" } | |
| def self.render(response) | |
| new(response).render | |
| end | |
| def initialize(response) |
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
| Software: qual sua utilidade? | |
| Resolver problemas, | |
| aplicando regras de negócio? | |
| 🤔 | |
| # todo sistema substitui um humano, que realiza processos de negócios como os que acontecem o tempo todo na GTi (jornada da gerência, de vendas, abraços quentinhos, etc). | |
| Se nossos sistemas substituem |
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
| module PicoCase | |
| class Result | |
| attr_reader :type, :data | |
| def self.Success(**data) | |
| new(:success, data) | |
| end | |
| def self.Failure(**data) | |
| new(:failure, data) |
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
| { | |
| "version": "v1", | |
| "event": "document_was_signed", | |
| "data": { | |
| "document": { | |
| "id": 150412, | |
| "code": "DS-00312", | |
| "status": "read", | |
| "value": "2888.0", | |
| "created_at": "2022-06-28T12:24:11.470-03:00", |
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": { | |
| "code": "DS-00319", | |
| "status": "sent", | |
| "created_at": "2022-07-11 16:01:55 -0300", | |
| "updated_at": "2022-07-11 16:02:24 -0300", | |
| "expiration_date": "2022-07-31", | |
| "contract_start": "2022-07-11", | |
| "contract_months": 12, | |
| "contract_end": "2023-07-11", |
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
| %PDF-1.7 | |
| 1 0 obj | |
| << | |
| /Type /Catalog | |
| /Pages 2 0 R | |
| >> | |
| endobj | |
| 2 0 obj | |
| << |
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
| require "bundler/inline" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "ferrum" | |
| end | |
| # URL do front a ser visitada para gerar o relatório, possívelmente com estilos CSS próprios para |
OlderNewer