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
Jan 27 17:44:51 cursoscetem app/web.1: Completed 500 Internal Server Error in 226ms | |
Jan 27 17:45:17 cursoscetem app/web.1: Started GET "/boards/4/conversations/80" for 190.179.138.202 at 2013-01-28 01:45:17 +0000 | |
Jan 27 17:45:17 cursoscetem app/web.1: ActionView::Template::Error (undefined method `voted_for?' for #<User:0x00000002c48590>): | |
Jan 27 17:45:17 cursoscetem app/web.1: 16: = sanitizar_bbcode(comment.body) | |
Jan 27 17:45:17 cursoscetem app/web.1: 17: %hr | |
Jan 27 17:45:17 cursoscetem app/web.1: 18: .well.well-dark.pull-right | |
Jan 27 17:45:17 cursoscetem app/web.1: 19: - unless @current_user.voted_for?(comment) | |
Jan 27 17:45:17 cursoscetem app/web.1: 20: = link_to '+', votar_encuesta_path(comentario_id: comment), remote: true, class: 'badge badge-success' | |
Jan 27 17:45:17 cursoscetem app/web.1: 21: | |
Jan 27 17:45:17 cursoscetem app/web.1: 22: = link_to '-', votar_encuesta_path(comentario_id: comment, negativo: true), remote: true, class: 'badge badge-warning' |
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 |
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
/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
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
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
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
# 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
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
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; |
OlderNewer