Diego R. V. diegorv

View gist:9999799
1 2 3 4
bind "F10" "amx_on; amx_say random [ Desbugando ];amx_rcon sv_timeout 1;wait;wait;wait;wait;wait;amx_rcon sv_timeout 99999; amx_rcon sv_timeout 65;amx_execall speak buttons/button1;speak buttons/button1"
bind "F7" "amx_rcon sv_restart 1"
bind "F6" "amx_say [Cpl Off]; amx_rcon mp_friendlyfire 0; amx_rcon mp_startmoney 16000; amx_rcon mp_roundtime 2.50; amx_rcon mp_c4timer 35; amx_rcon mp_freezetime 0; amx_rcon mp_buytime 2.50; amx_rcon mp_timeleft 0; amx_rcon mp_timelimit 0; amx_rcon mp_maxrounds 0; amx_rcon sv_alltalk 0; amx_rcon mp_forcechasecam 0; amx_rcon mp_forcecamera 0; amx_rcon mp_autoteambalance 0; amx_rcon mp_limitteams 0; mp_autokick 1"
bind "F5" "amx_say [Cpl On]; amx_rcon mp_freezetime 15;amx_rcon mp_c4timer 35;amx_rcon mp_maxrounds 0;amx_rcon mp_tkpunish 0;amx_rcon mp_startmoney 800;amx_rcon mp_friendlyfire 1;amx_rcon mp_roundtime 1.75;amx_rcon mp_limitteams 0;amx_rcon mp_autoteambalance 0;amx_rcon mp_friendlyfire 1;amx_rcon allow_spectators 1;amx_rcon sv_alltalk 0;amx_rcon mp_forcecamera 2;amx_r
View rfid_decimal.pde
1 2 3 4 5 6 7 8 9 10
#include <SoftwareSerial.h>
// Pin definitions
const int rfid_irq = 0;
const int rfid_tx_pin = 6;
const int rfid_rx_pin = 7;
// For communication with RFID module
SoftwareSerial rfid(rfid_tx_pin, rfid_rx_pin);
View gist:1780157
1 2 3 4 5 6 7 8 9 10
[
{:name => 'BronzeBusiness' ,
:url => 'http://www.bronzebusiness.com.br/webservices/wscep.asmx/cep?strcep=',
:fields => %w(logradouro nome bairro UF cidade)
},
{:name => 'RepublicaVirtual' ,
:url => 'http://cep.republicavirtual.com.br/web_cep.php?cep=',
:fields => %w(tipo_logradouro logradouro bairro uf cidade)
},
{:name => 'Paicon' ,
View gist:1186843
1 2 3 4 5 6 7 8 9 10
#require 'simplecov'
#SimpleCov.start 'rails'
 
require 'rubygems'
#require 'spork'
 
#Spork.prefork do
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
View gist:1186738
1 2 3 4 5 6 7 8 9 10
class Client < ActiveRecord::Base
has_many :client_companies, :dependent => :destroy
has_many :contracts , :dependent => :destroy
accepts_nested_attributes_for :client_companies , :allow_destroy => true
end
 
class ClientCompany < ActiveRecord::Base
belongs_to :client
View have_named_scope.rb
1 2 3 4 5 6 7 8 9 10
module Shoulda # :nodoc:
module ActiveRecord # :nodoc:
 
# Examples:
# class Book < ActiveRecord::Base
# named_scope :test, :conditions => { :name => "test" }
# named_scope :by_name, lambda { |n| { :conditions => { :name => n} } }
# end
#
# RSpec:
View allow.rb
1 2 3 4 5 6 7 8 9 10
RSpec::Matchers.define :allow do |*values|
match do |record|
values.collect {|value|
record.send("#{@attribute}=", value)
record.valid?
record.errors[@attribute].empty?
}.all?
end
 
chain :as do |attribute|
View gist:797446
1 2 3 4 5 6 7 8 9 10
# bash_completion - programmable completion functions for bash 3.x
# (backwards compatible with bash 2.05b)
#
# $Id: bash_completion,v 1.872 2006/03/01 16:20:18 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
View gist:661410
1 2 3 4 5 6 7 8 9 10
$ cucumber --backtrace --verbose --tags @bank_account
Using the default profile...
Code:
* features/support/env.rb
* features/support/paths.rb
* features/step_definitions/base_steps.rb
* features/step_definitions/web_steps.rb
* features/step_definitions/web_steps_pt-br.rb
 
Features:
View gist:661407
1 2 3 4 5 6 7 8 9 10
$ cucumber --backtrace --verbose --tags @bank_accountUsing the default profile...
Code:
* features/support/env.rb
* features/support/paths.rb
* features/step_definitions/base_steps.rb
* features/step_definitions/web_steps.rb
* features/step_definitions/web_steps_pt-br.rb
 
Features:
* features/admin/admin_bank_accounts.feature
Something went wrong with that request. Please try again.