Skip to content

Instantly share code, notes, and snippets.

View leanucci's full-sized avatar

Leandro Marcucci leanucci

  • CABA - Argentina
  • 18:00 (UTC -03:00)
  • X @leanucci
View GitHub Profile
# RubyGoal - Fútbol para Rubistas
#
# Este documento contiene varias implementaciones mínimas de un entrenador de RubyGoal.#
#
# Esta clase debe implementar, como mínimo, los métodos `name` y `formation(match)`
# Esta clase debe ser implementada dentro del módulo Rubygoal
module Rubygoal
class MyCoach < Coach
# Indica el nombre del equipo
export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/opt/local/bin
alias gco='git checkout'
alias gba='git branch -a'
alias gca='git commit -a -v'
alias gst='git status'
source ~/.git-completion.bash
complete -o default -o nospace -F _git_checkout gco
<?xml version="1.0" encoding="UTF-8"?>
<response>
<asset>
<uuid>6a47d8fb-38a0-48a3-8d63-3fc4ccfc3600</uuid>
<title>ElRobador</title>
<checksum>asdqwezxcrtyfghvbn</checksum>
<asset_file>
<uuid>13ed5584-fc78-4bc1-bdf7-afc67b30e46a</uuid>
<file_name>steal.rb</file_name>
<content_type>application/octet-stream</content_type>
+----------------------------------------------------+-------+-------+--------+
| File | Lines | LOC | COV |
+----------------------------------------------------+-------+-------+--------+
|app/controllers/admin/general_admins_controller.rb | 44 | 38 | 73.7% |
|...ers/management/general_managements_controller.rb | 44 | 38 | 73.7% |
|app/controllers/wapi/assets_controller.rb | 15 | 14 | 78.6% |
|app/controllers/wapi/api_controller.rb | 11 | 10 | 80.0% |
|app/controllers/management/customers_controller.rb | 47 | 39 | 82.1% |
|app/controllers/management/managers_controller.rb | 64 | 56 | 82.1% |
|app/controllers/management/personas_controller.rb | 48 | 40 | 82.5% |
require 'autotest/fsevent'
# require 'autotest/redgreen'
require 'autotest/timestamp'
module Autotest::Growl
def self.growl title, msg, img, pri=0, sticky=""
system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{sticky}"
end
IMAGE_ROOT = "~/Pictures/autotest/"
Without fast_context:
12:32 ~/XephNet/leanucci release % time rake test:units
Finished in 1.168318 seconds.
48 tests, 72 assertions, 0 failures, 0 errors
real 0m8.445s
user 0m4.681s
sys 0m1.485s
Nº de cliente: 4********3.
Nombre y apellido del titular: Juana Perez.
DNI del titular: 2******7.
Telefono de Contacto: 15-***-**37 (Leandro).
Domicilio donde esta instalado: Cabrera **** *vo "B".
Producto de la baja: Fibertel.
Motivo de la baja:
Los reiterados, azarosos y molestos cortes en el servicio, y la
paupérrima capacidad de respuesta por parte de la compañía para
require ‘toilet_paper’
require ‘lysol’
require ‘matches’
class Coworker < Vurbian
def use_bathroom(use)
case use
when only_using_lavatory
lavatory.leave_clean!
when pee, piss, wee-wee
# The following lines were added by compinstall
zstyle ':completion:*' completer _ignored _approximate
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'r:|[._-]=** r:|=**'
zstyle ':completion:*' menu select=1
zstyle ':completion:*' original true
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' verbose true
## line 657, test/cases/nested_attribute_test.rb
def test_should_trigger_validations_on_new_nested_objects
repair_validations(Bird) do
Bird.validates_uniqueness_of(:name)
assert_no_difference ['Pirate.count', 'Bird.count'] do
Pirate.create(:catchphrase => "Garrr!", :birds_attributes => {"0" => {:name => "Garrr!Bird"}, "1" => {:name => "Garrr!Bird"}})
end
end
end