- Security boot disable (change this in BIOS, for MSI computers reboot system and press delete a couple of times before the OS is loaded)
- Possible problem: Screen freezing while installing
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
| =begin Gerando um ID único baseado em um seed númerico. | |
| 428571429 mod 62 = 25 | |
| 6912442 mod 62 = 0 | |
| 111491 mod 62 = 15 | |
| 1798 mod 62 = 0 | |
| 29 mod 62 = 29 | |
| =end | |
| CHARSET = [('0'..'9').to_a, ('a'..'z').to_a, ('A'..'Z').to_a].flatten.freeze |
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
| class AutoCheckOutDeliveryManService | |
| include Interactor | |
| include Workable | |
| include PubSub::Concerns::LifecycleEventSubscriber | |
| subscribe_to 'store/change_status', kind: 'delivery', status: 'closed' | |
| # event: Store::ChangeStatusEvent | |
| def call | |
| tenant.with do |
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 Controllers::Crudify | |
| extend ActiveSupport::Concern | |
| included do | |
| before_action :set_super_resource | |
| before_action :set_resource, only: %i[show edit update] | |
| show_search only: :index | |
| show_back only: %i[new edit] |
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
| TESTE_DATA = [ | |
| ["(a[0]+b[2c[6]]) {24 + 53}", true], | |
| ["f(e(d))", true], | |
| ["[()]{}([])", true], | |
| ["((b)", false], | |
| ["(c]", false], | |
| ["{(a[])", false], | |
| ["([)]", false], | |
| [")(", false], | |
| ["", 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
| links.select {|item| item[:href].include?('order') }.map { |item| item[:href] }.first.match('.*\/order\/(.*)')[1] |
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
| gem 'nokogiri, '~> 1.10' | |
| gem 'httparty' | |
| gem 'wasabi' |
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
| class SoapEnvelopeBuilder | |
| SCHEMA_TYPES = { | |
| 'xmlns:xsd' => 'http://www.w3.org/2001/XMLSchema', | |
| 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance' | |
| } | |
| SOAP_NAMESPACE = { | |
| 1 => { 'soap11' => 'http://schemas.xmlsoap.org/soap/envelope/' }, | |
| 2 => { 'soap12' => 'http://www.w3.org/2003/05/soap-envelope' } | |
| } |
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
| # frozen_string_literal: true | |
| # Use this setup block to configure all options available in SimpleForm. | |
| SimpleForm.setup do |config| | |
| # Default class for buttons | |
| config.button_class = 'button' | |
| # Define the default class of the input wrapper of the boolean input. | |
| config.boolean_label_class = 'checkbox' |
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
| # Put on config/initializers folder | |
| class String | |
| def to_delocalized_decimal | |
| delimiter = I18n::t('number.format.delimiter') | |
| separator = I18n::t('number.format.separator') | |
| self.gsub(/[#{delimiter}]/, '').gsub(separator, '.') | |
| end | |
| def to_delocalized_money | |
| unit = I18n::t('number.currency.format.unit') |
NewerOlder