This file contains 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
NODE_ENV="development" | |
SENTRY_DSN="https://6c747db5b08e4cc9bb9bf80ea76ad807@o417197.ingest.sentry.io/5773813" | |
EMAIL_SERVICE_URL="" | |
PAYPAL_CLIENT_ID="" | |
PAYPAL_CLIENT_SECRET="" | |
UNBXD_SITE_ID="dev-shoesforcrews-com812371608054982" | |
UNBXD_API_KEY="8cc4cb455045d0b216c1dd3144d8a81c" | |
#AVA_TAX_AUTH=MjAwMDE2OTYzMjo2NzA3NzEzMTk5QkIyMDQ5 | |
#UNBXD_MS_ENDPOINT="https://products.dev.sfc.merce.io" |
This file contains 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
console.clear(); | |
const uno = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']; | |
let activeIndex = 1; | |
const visibleElements = 5; | |
const centerElement = parseInt(visibleElements / 2, 0); | |
const dos = uno.map((item, index) => { | |
let adjustedIndex = index + 2 + activeIndex; | |
let level = 3; |
This file contains 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
let items = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l']; | |
function shift({array, direction, amount}) { | |
let arr = array.slice(0); | |
let times = amount > arr.length ? amount % arr.length : amount; | |
let result = arr; | |
let modifier = direction === 'left' ? arr.length - times : times; | |
result = arr.concat(arr.splice(0, modifier)); | |
This file contains 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
# Note: ~/.ssh/environment should not be used, as it | |
# already has a different purpose in SSH. | |
env=~/.ssh/agent.env | |
# Note: Don't bother checking SSH_AGENT_PID. It's not used | |
# by SSH itself, and it might even be incorrect | |
# (for example, when using agent-forwarding over SSH). | |
agent_is_running() { |
This file contains 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
q = Sidekiq::Queue.new('worker_name') | |
q.each do |j| | |
j.delete | |
end |
This file contains 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
payment_reports = PaymentReport.where(medium: 'PagoFacil') | |
payments = Payment.where(payment_report_id: payment_reports.map(&:id)) | |
payments.update_all(payment_report_id: nil) | |
payment_reports.destroy_all |
This file contains 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
Zendesk_api gem version 1.1.1 | |
########################################################################################################################### | |
Using ruby 1.9.2 -p125 with /api/v2 part. | |
[1] pry(main)> class CustomerService | |
[1] pry(main)* require 'zendesk_api' | |
[1] pry(main)* | |
[1] pry(main)* class << self |
This file contains 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
/home/lockon/.rbenv/versions/1.9.3-p327/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest /home/lockon/Programas/RubyMine-5.4/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb | |
Testing started at 01:01 ... | |
Work directory: /home/lockon/workspace/firehouse | |
Loading files.... | |
========================================= | |
1. /home/lockon/workspace/firehouse/test/unit/intervention_test.rb:1 | |
2. /home/lockon/workspace/firehouse/test/unit/endowment_test.rb:1 | |
3. /home/lockon/workspace/firehouse/test/unit/firefighter_test.rb:1 | |
4. /home/lockon/workspace/firehouse/test/unit/mobile_intervention_test.rb:1 | |
5. /home/lockon/workspace/firehouse/test/unit/user_test.rb:1 |
This file contains 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
Este es el log de los test unitarios COMENTANDO la validación del truck_number de los endowments. | |
Fallan 3 creo, intervention, endowment y endowment_line. Ni idea para que es el Version.count que aparece en los test unitarios autogenerados. | |
/home/lockon/.rbenv/versions/1.9.3-p327/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest /home/lockon/Programas/RubyMine-5.4/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb | |
Testing started at 00:54 ... | |
Work directory: /home/lockon/workspace/firehouse | |
Loading files.... | |
========================================= | |
1. /home/lockon/workspace/firehouse/test/unit/intervention_test.rb:1 | |
2. /home/lockon/workspace/firehouse/test/unit/endowment_test.rb:1 |
This file contains 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
##es.application.yml | |
... | |
correctly_created: 'Tipo de intervención agregado correctamente.' | |
... | |
##inter_types_controller.rb | |
js_notify( message: t('view.intervention_types.correctly_created'), type: 'alert-success js-notify-18px-text', time: 2500 ) | |
##html generado | |
### Chrome Ubuntu - Sin problemas |
NewerOlder