This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :foo do | |
task :a do | |
exec "echo A" | |
end | |
task :b => [:'foo:a'] do | |
exec "echo B" | |
end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module GracefulDegradationHelper | |
# doctest: | |
# | |
# >> gracefully { tag(:hello) } | |
# => "<hello />" | |
# | |
# >> gracefully { raise "oops" } | |
# => "" | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rspec' | |
module EventLogging | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tw@hernan-cortes:~$ [master*] time rake jasmine:headless | |
.................................... | |
PASS: 36 tests, 0 failures, 0.175 secs. | |
real 0m4.303s | |
user 0m2.660s | |
sys 0m0.900s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++ pwd | |
+ PWD=/var/lib/go-agent/pipelines/profiles/tmp/rpmbuild/BUILD/profiles | |
+ env -i GEM_HOME=/var/lib/go-agent/pipelines/profiles/tmp/rpmbuild/BUILD/profiles/vendor/bundle/ruby/1.9.1 GEM_PATH=/var/lib/go-agent/pipelines/profiles/tmp/rpmbuild/BUILD/profiles/vendor/bundle/ruby/1.9.1 gem install bundler --no-rdoc --no-ri | |
ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository | |
ERROR: Possible alternatives: bundler | |
error: Bad exit status from /var/tmp/rpm-tmp.23649 (%build) | |
Bad exit status from /var/tmp/rpm-tmp.23649 (%build) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.sw? | |
tags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global github.password 'security find-internet-password -wgs github.com # 2>&1 >/dev/null find-internet-password -wgs github.com' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.clone(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.addEventListener = function(fn, cb) { | |
if(!this.__eventListeners) { | |
this.__eventListeners = {}; | |
} | |
if(typeof(fn) !== 'string') { | |
throw "Can't add event listener: 1st argument is not a string"; | |
} | |
if(typeof(cb) !== 'function') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<servico> | |
<titulo>Auxílio-Doença</titulo> | |
<descricao>Benefício concedido ao segurado impedido de trabalhar por doença ou acidente por mais de 15 dias | |
consecutivos. No caso dos trabalhadores com carteira assinada, os primeiros 15 dias são pagos pelo empregador, | |
exceto o doméstico, e a Previdência Social paga a partir do 16º dia de afastamento do trabalho. Para os demais | |
segurados inclusive o doméstico, a Previdência paga o auxílio desde o início da incapacidade e enquanto a mesma | |
perdurar. | |
</descricao> | |
<requisitos></requisitos> |