Skip to content

Instantly share code, notes, and snippets.

Avatar

victor-adrian lobo-tuerto

View GitHub Profile
@lobo-tuerto
lobo-tuerto / vuetify-horizontal-timeline.md
Created Sep 17, 2019 — forked from goeh/vuetify-horizontal-timeline.md
Requirements for a new Vuetify Horizontal Timeline component
View vuetify-horizontal-timeline.md

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.
@lobo-tuerto
lobo-tuerto / a-vue-component.js
Created May 27, 2018
Base service with Axios
View a-vue-component.js
import { userService } from '@/services'
# ...
created () {
this.isLoading = true
this.id = this.$route.params.id
userService
.one(this.id)
View keybase.md

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:

View gist:846306
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
View gist:843979
$ 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
View gist:833376
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'
View gist:32044
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
View gist:32001
$params = Array(
'conditions' => Array(
'or' => Array(
'Holidays.date' => $date,
'and' => Array(
'MONTH(Holidays.date)' => $month,
'DAY(Holidays.date)' => $day,
'Holidays.is_yearly' => 1
)
)
View gist:30842
@operaciones = all(:servicio_id => @servicio.id, :tipo_de_operacion_id => @tipo_de_operacion_ids).serialize
@operaciones.map! {|i| i[:nombre] = @tipo_de_operacion.find{|to| to.id == i[:tipo_de_operacion_id]}.nombre; i}
View gist:24972
property :email, String, :nullable => false, :unique => true, :format => :email_address,
:messages => {
:presence => "We need your email address.",
:is_unique => "We already have that email.",
:format => "Doesn't look like an email address to me ..."
}
#The messages should map to the stuff we are validating, or else the user needs to LOOK for WHAT to set
#This should be better