Preferência na ordem:
- chocolate com amendoim
- baunilha
- chocolate
| COPY cities (id, state_id, name, created_at, updated_at) FROM stdin; | |
| 1440 9 Ciudad Autónoma de Buenos Aires 2016-11-17 17:18:37.619255 2016-11-17 17:18:37.619255 | |
| 1441 10 Carhué 2016-11-17 17:18:37.628344 2016-11-17 17:18:37.628344 | |
| 1442 10 Colonia San Miguel Arcángel 2016-11-17 17:18:37.633553 2016-11-17 17:18:37.633553 | |
| 1443 10 Delfín Huergo 2016-11-17 17:18:37.639846 2016-11-17 17:18:37.639846 | |
| 1444 10 Espartillar 2016-11-17 17:18:37.64566 2016-11-17 17:18:37.64566 | |
| 1445 10 Esteban Agustín Gascón 2016-11-17 17:18:37.653344 2016-11-17 17:18:37.653344 | |
| 1446 10 La Pala 2016-11-17 17:18:37.660556 2016-11-17 17:18:37.660556 | |
| 1447 10 Maza 2016-11-17 17:18:37.667124 2016-11-17 17:18:37.667124 | |
| 1448 10 Rivera 2016-11-17 17:18:37.674722 2016-11-17 17:18:37.674722 |
| require 'delegate' | |
| module SidekiqExt | |
| # Use read-only database if :db option is :read_only, | |
| # otherwise use the default connection. | |
| # | |
| # Example: | |
| # | |
| # class MyWorker | |
| # include Sidekiq::Worker |
Preferência na ordem:
| require 'pty' | |
| require 'active_support' | |
| require 'active_support/core_ext/time' | |
| require 'active_support/core_ext/numeric' | |
| TIMEOUT_TO_KILL_DYNO = 3.minute.from_now | |
| TIMEOUT_TO_ANY_KILL = 30.seconds | |
| MAX_PROBLEMS = 3 | |
| PROBLEMS = { |
| rake() { if [ -f bin/rake ]; then bin/rake "$@"; else bundle exec rake "$@"; fi } | |
| rails() { if [ -f bin/rails ]; then bin/rails "$@"; else bundle exec rails "$@"; fi } | |
| rspec() { if [ -f bin/rspec ]; then bin/rspec "$@"; else bundle exec rspec "$@"; fi } |
| queue = Sidekiq::Queue.new("low") | |
| queue.each do |job| | |
| if job.klass == "MailChimpUpdate" | |
| job.delete | |
| end | |
| end |
| def json | |
| if self.persisted? | |
| original_bylines_json = self.class.find(self.id).bylines.as_json | |
| else | |
| original_bylines_json = [].as_json | |
| end | |
| end | |
| # --------------- |
| @media all { | |
| .page-break { | |
| display: none; | |
| } | |
| } | |
| @media print { | |
| .page-break { | |
| display: block; | |
| page-break-before: always; |
| class PeopleController < CrudController | |
| respond_to :js | |
| def new | |
| object = build_resource | |
| object.personable = Individual.new | |
| super | |
| end |
| gh_commit(){ | |
| echo "https://github.com/$1/$2/commit/$3" | |
| } | |
| nohup_commit(){ | |
| gh_commit "nohupbrasil" $* | |
| } | |
| contabil_commit(){ | |
| nohup_commit "contabilidade" $* |