Skip to content

Instantly share code, notes, and snippets.

View lobo-tuerto's full-sized avatar

Víctor Adrián lobo-tuerto

View GitHub Profile
$params = Array(
'conditions' => Array(
'or' => Array(
'Holidays.date' => $date,
'and' => Array(
'MONTH(Holidays.date)' => $month,
'DAY(Holidays.date)' => $day,
'Holidays.is_yearly' => 1
)
)
validates_with_method :fecha_de_inicio, :method => :checa_es_dia_habil
def checa_es_dia_habil(campo)
if DiaInhabil.es_inhabil?(self.send(campo))
return [false, "No es día hábil"]
end
true
end
oewolf@oewolf-M11x-R2:~/development/gamedev/github/missile-command-ruby$ ruby bin/missile-command-ruby
..................
18 image(s) loaded.
.
1 sounds(s) loaded.
.
1 animation(s) loaded.
/home/oewolf/.rvm/gems/ruby-1.9.2-p136/gems/lotu-0.1.14/lib/lotu/systems/interpolation_system.rb:58:in `==': can't convert Explosion into Integer (TypeError)
from /home/oewolf/.rvm/gems/ruby-1.9.2-p136/gems/lotu-0.1.14/lib/lotu/systems/interpolation_system.rb:58:in `=='
from /home/oewolf/.rvm/gems/ruby-1.9.2-p136/gems/lotu-0.1.14/lib/lotu/systems/interpolation_system.rb:58:in `delete'
$ rake install
(in /home/oewolf/development/gamedev/github/missile-command-ruby)
Successfully built RubyGem
Name: missile-command-ruby
Version: 0.0.6
File: missile-command-ruby-0.0.6.gem
Executing "ruby -S gem install ./pkg/missile-command-ruby-0.0.6.gem":
ruby -S gem install ./pkg/missile-command-ruby-0.0.6.gem
ERROR: While executing gem ... (ArgumentError)
undefined class/module YAML::PrivateType
require 'optparse'
module Lotu
module Helpers
module Util
def class_debug_info
if $lotu.debug
puts "[#{self.class.to_s.green}] Behavior options: #{self.class.behavior_options}\n" if self.class.respond_to? :behavior_options
end

Keybase proof

I hereby claim:

  • I am lobo-tuerto on github.
  • I am lobo_tuerto (https://keybase.io/lobo_tuerto) on keybase.
  • I have a public key ASChGgIF98lEiWNINIqSu9MLbrdwKEh_kQLjlFuXavvGkgo

To claim this, I am signing this object:

@lobo-tuerto
lobo-tuerto / a-vue-component.js
Created May 27, 2018 21:26
Base service with Axios
import { userService } from '@/services'
# ...
created () {
this.isLoading = true
this.id = this.$route.params.id
userService
.one(this.id)
@lobo-tuerto
lobo-tuerto / vuetify-horizontal-timeline.md
Created September 17, 2019 23:10 — forked from goeh/vuetify-horizontal-timeline.md
Requirements for a new Vuetify Horizontal Timeline component

Horizontal Timeline Component - requirements

Must have

User Interface

Vuetify Component

  • Follow Vuetify / Material Design look and feel
  • Compatible with Vuetify, light/dark theme.
  • Follow Vuetify conventions, naming, props, events, etc.